Backup g2data script?

illusionuk

Joined: 2005-11-02
Posts: 5
Posted: Wed, 2007-03-07 11:16

Hi guys,

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.

Illusion

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-03-07 12:23

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

 
illusionuk

Joined: 2005-11-02
Posts: 5
Posted: Wed, 2007-03-07 12:28

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

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
illusionuk

Joined: 2005-11-02
Posts: 5
Posted: Wed, 2007-03-07 14:16

exec is disabled

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-03-07 14:17

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

 
dsellars

Joined: 2005-10-07
Posts: 22
Posted: Thu, 2007-03-08 17:29

This is excellent - it worked for me! Thanks! What is the command I should use to un-TAR the file on the new server?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-08 17:38

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