简体   繁体   English

创建MoinMoin网站的静态副本

[英]Creating a static copy of a MoinMoin site

I have a MoinMoin site which I've inherited from a previous system administrator. 我有一个MoinMoin网站,该网站是我从以前的系统管理员那里继承而来的。 I'd like to shut it down but keep a static copy of the content as an archive, ideally with the same URLs. 我想将其关闭,但是将内容的静态副本保留为存档,最好使用相同的URL。 At the moment I'm trying to accomplish this using wget with the following parameters: 目前,我正在尝试使用带有以下参数的wget完成此操作:

--mirror
--convert-links
--page-requisites
--no-parent
-w 1
-e robots=off
-user-agent="Mozilla/5.0"
-4

This seems to work for getting the HTML and CSS, but it fails to download any of the attachments. 这似乎可以获取HTML和CSS,但无法下载任何附件。 Is there an argument I can add to wget which will get round this problem? 我可以在wget中添加一个参数来解决这个问题吗?

Alternatively, is there a way I can tell MoinMoin to link directly to files in the HTML it produces? 另外,是否有一种方法可以告诉MoinMoin直接链接到它生成的HTML中的文件? If I could do that then I think wget would "just work" and download all the attachments. 如果可以的话,我认为wget将“正常工作”并下载所有附件。 I'm not bothered about the attachment URLs changing as they won't have been linked to directly in other places (eg email archives). 我不会为附件URL更改而烦恼,因为它们不会直接链接到其他位置(例如,电子邮件存档)。

The site is running MoinMoin 1.9.x. 该站点正在运行MoinMoin1.9.x。

My version of wget: 我的wget版本:

$ wget --version
GNU Wget 1.16.1 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie -psl +ssl/openssl

The solution in the end was to use MoinMoin's export dump functionality: 最后的解决方案是使用MoinMoin的导出转储功能:

https://moinmo.in/FeatureRequests/MoinExportDump https://moinmo.in/FeatureRequests/MoinExportDump

It doesn't preserve the file paths in the way that wget does, but has the major advantage of including all the files and the attachments. 它不会像wget那样保留文件路径,而是具有包括所有文件和附件的主要优点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM