![]() | xargs cp -t /tmp/workingBackupMediaFiles | sed 's~mwstore://local-backend/local-public~./images~' \ Step-1: generate the image dumps using dumpUploads (with -local or -shared options when preservation need), that creates a txt list of all image filenames in use. ![]() The ugly images/?/?/* folder format is not suitable, as usual "all image files in only one folder".įor "Exporting and Importing" all current images in one folder at MediaWiki server's terminal, there are a step-by-step single procedure. There are a lot of expurious files: "deleted files" and "old files" (not the current) with filenames as 20160627184943!MyFig.png, and thumbnails as MyFig.png/120px-MyFig.jpg.įor data-interchange or long-term preservation porpurses, it is invalid. The Mediawiki's images folder can be zipped with zip -r ~/Mediafiles.zip images command, but this zip is not so good: Once uploaded, files are stored in a folder on the file system, and thumbnails in a dedicated thumb directory. Users upload files through the Special:Upload page administrators can configure the allowed file types through an extension whitelist. Note: all cited (below) scripts have also -help option, for instance php maintenance/importImages.php -help Original image folder New Mediawiki versions run all standard scripts in the tasks described below, but old versions have some bugs or not have all moderns scripts: check the version number by grep wgVersion includes/DefaultSettings.php. MediaWiki administrator, at server's terminal, can perform maintenance tasks using the Maintenance scripts framework.
0 Comments
Leave a Reply. |