What the tool does is to convert all Virtual Albums to Physical ones.
All albums will be re-created as directories inside galleries/ and all the associated images will be put there as well using the original filename when the image was uploaded.
Note: The images are not moved or deleted, they are simply copied. In case that everything goes wrong you can just restore your DB backup and everything should be ok.
Technically if everything goes ok you can completely delete the upload directory.
1. Do a DB backup
2. Put the script inside your piwigo root directory
3. Using your console run the script and wait
4. Do a sync and view your website
Warning: Not for newbies!
This script was made for a personal website of mine, it worked and I have no use for it anymore. Feel free to modify it and distribute but please leave a note saying that the original was developed by jsdelivr.com.
http://www.jsdelivr.com/piwigo/cli_data_move.php.txt
DO FULL BACKUP BEFORE RUNNING IT
If you lose all data, if your DB crashes, if your server explodes it is YOUR fault.
Review the code before running it, I am NOT responsible for any damages at all and I will not be supporting the script.
I hope someone finds it useful.
Thank you!