Gallery 2 Backup Failed, Need to import albums

luvdodo

Joined: 2005-10-20
Posts: 20
Posted: Sun, 2006-01-08 16:01

Friends,

My hosting company closed down and I have been struggling to get my data back. I finally received a copy of the g2data/albums directory, which includes all the subfolders and the photo files within them.

Question 1) I have a new install of G2 on a new server with no albums. Is there a way I can migrate the old g2data/albums directory into the new installed version and recreate the resized images/thumbnails?

Question 2) I have a backup of the MySQL database too. Is it possible to migrate the captions I had created? There are 1000 of them and it's going to be a pain retyping them again.

Thank you so much,

Dodz.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-08 16:29

topic moved to support forums.

1) since you only have g2data/albums and not the whole g2data/ + the database backup, you can only use add items -> from server:
FAQ: How can I export data from one G2 to another G2 installation?

2) ok, you have the database too, but you're missing the g2data/ structure.
1. i'd recommend putting your g2data/albums on the new server in a g2data/albums folder
2. import the database somehow (phpmyadmin ,...)
3. chmod -R 777 g2data/albums (change the permissions recursively)
4. run the g2 installer,
5. in the storage step, point to the g2data folder
6. manually create a "versions.dat" file in g2data which has 2 lines of text. the first line should be the exact gallery core module version number you had on the other server. you can get the version from the database table g2_PluginParameterMap row "module", "core", "_version", something like "1.0.0".
the second line doesn't really matter, write "gallery-2.0" or so. save the versions.dat file
7. advance to the database step, enter the connection information to the existing database. hit save. now you should get the option "reuse database tables". click it.
8. finish the installer.
9. done.