Manual talk:DumpUploads.php
Add topicAppearance
Latest comment: 7 years ago by Tactica in topic Fixed example
Fixed example
[edit]Export images:
php maintenance/dumpUploads.php | sed -E 's#.*local-public/(.*)#images/\1#' | xargs tar cf backup_files.tar
Import images:
mkdir tmp tar xf backup_files.tar -C tmp cd tmp find -type f -exec cp {} . \; php ../maintenance/importImages.php ./
--Dracorp (talk) 10:44, 17 December 2013 (UTC)
- Doesn't work either, the export command throws the same error here about single quotes being special for xargs unless -0 is used.--Tactica (talk) 20:30, 15 April 2017 (UTC)