Backing up the wiki: Difference between revisions

no edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1:
=== WikiTeam3 ===
You can easily generate a database dump and file dump using Save the Web Project's [https://github.com/saveweb/wikiteam3/blob/v4-main/README.md WikiTeam3] Python script, (full instructions are at that link).
 
{{note|<nowiki>Windows: When using --images, because NTFS does not allow characters such as :*?"<>| in filenames, some files may not be downloaded, please check the errors.log file.</nowiki>}}
{{note|Windows is unsupported. Use [https://learn.microsoft.com/en-us/windows/wsl/install WSL] to run WikiTeam3 on Windows.}}
 
e.g. <code>wikiteam3dumpgenerator <nowiki>wikiteam3dumpgenerator https://WIKINAME.miraheze.org</nowiki> --xml --xmlrevisions --images --bypass-cdn-image-compression --force</nowiki></code>
 
To dump a private wiki you will have to use a login that has at least read permission on the wiki.
 
e.g. <code>wikiteam3dumpgenerator <nowiki>wikiteam3dumpgenerator https://WIKINAME.miraheze.org</nowiki> --xml --xmlrevisions --images --bypass-cdn-image-compression --force --user USER --pass PASSWORD</nowiki></code>
 
* --xml exports an XML dump, usinguses Special:Export by default when no other xmldump method is specified.
* --xmlrevisions uses API:Allrevisions xmldump method. Recommended as it's quicker and puts almost no pressure on the MediaWiki backend compared to Special:Export.
* --images generates an image dump
* --bypass-cdn-image-compression doesn'tappends droprandom anyparameters imagesto compressedURL bywhen adownloading content delivery networkimage
* --force generates a dump even if there is one already at Internet Archive
 
If you encounter any problem with running the script, please [https://github.com/saveweb/wikiteam3/issues raise a new issue] at the Save the Web Project's [https://github.com/saveweb/wikiteam3/blob saveweb/v4-main/README.md WikiTeam3] GitHub repository.
 
== Restoring from backup ==