4

I have run this same backup command on previous versions of MediaWiki (on Centos 6.4) and it has worked successfully but now when running this command on MediaWiki 1.20.4 -

[root@wiki images]# php /var/www/html/wiki/maintenance/dumpUploads.php --base=$(pwd) | xargs -I foo cp 'foo' . -v

I get the following errors -

cp: cannot stat `mwstore://local-backend/local-public/0/07/Xvidcap-test.swf': 
No such file or directory

I can see this is because the location does not exist but how can I get around this?

Nemo
  • 1,151
Josh
  • 41

1 Answers1

0

Manual:dumpUploads.php recommends tar, like php maintenance/dumpUploads.php | xargs tar cf backup_files.tar.

However, if your aim is backup, you should preserve the directory structure you're using. As Manual:Backing up a wiki recommends, just use tar, e.g.:

tar caf images.tar.gz /var/www/html/wiki/images/

if you want to backup the uploads only and to compress them a bit.

Note, mwstore is the file backend.

Nemo
  • 1,151