I'm looking to back up my "\g2data" directory as I am thinking of migrating servers.
Is there a backup_albums script available just like there was for gallery 1?
Thanks in advance.
there's no script.
just copy the whole g2data/ folder.
see: documentation -> maintenance & admininistration -> backup.
and don't forget to backup the database as well.
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
The problem is that I can only access my current FTP via dial up hence why I want to migrate, so downloading via FTP will take forever.
I was hoping there was a zip script so that I could compress and download as a whole using my BB connection just like gallery 1.
no, there is not.
doesn't your webhost provide downloadable backups?
anyhow, you can create a backup.php script:
<?php exec('tar -czf g2data.tar.gz /full/path/to/your/g2data/'); print "done!"; ?>
1. adjust the path in there,
2. then put that file onto your server,
3. chmod the folder the file is in to 777,
4. browse to it with your webbrowser, wait until it shows "done".
5. then delete the file again.
6. chmod the folder to 755 again (or what ever value it had before)
7. download your g2data.tar.gz file
exec is disabled
no luck for you then.
please ask your webhost to create a zip then. that's what they get from disabling features.
This is excellent - it worked for me! Thanks! What is the command I should use to un-TAR the file on the new server?
tar -xzf g2data.tar.gz
note that you also need to do step 3 and 6 when untarring.