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.
valiant
Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-03-07 12:35
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
Posts: 32509
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
Posts: 5
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.
Posts: 32509
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
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 5
exec is disabled
Posts: 32509
no luck for you then.
please ask your webhost to create a zip then. that's what they get from disabling features.
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 22
This is excellent - it worked for me! Thanks! What is the command I should use to un-TAR the file on the new server?
Posts: 32509
tar -xzf g2data.tar.gz
note that you also need to do step 3 and 6 when untarring.
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage