Can not import my data :-(

Martin F

Joined: 2006-09-02
Posts: 2
Posted: Sat, 2006-09-02 23:05


G2 URL (optional):http://83.245.34.203/gallery
G2 version:2.0.1
G1 URL (optional):http://www.mkivsupraownersclub.com/gallery
G1 version:1.4.4-pl5
G1 character set:
PHP memory limit:
--
Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.3.9 cgi
Webserver = Apache/2.0.52 (CentOS)
Database = mysql 4.1.18-standard
Toolkits = ArchiveUpload, ImageMagick, NetPBM
Operating system = Linux vs3.register1.net 2.6.9-36.ELsmp #1 SMP Tue May 9 09:23:37 EDT 2006 i686
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

I'm moving server and at the same time trying to upgrade my Gallery software as my new host kindly had Gallery2 ready to auto-install on my new server, but unfortunately i'm hitting my head with the following problem.

I downloaded my albums directory from the old site\machine and then uploaded it to the new site machine (with its fresh install of Gallery2) and called this directory 'GalleryOld'. However when i run the import option in Gallery 2 it says 'The path that you entered is invalid.'.

I know for a fact that the path isn't as i've checked and double checked, what i think the problem is, is that my 'Gallery Old' albums directory is missing the 'albumdb.dat' & 'albumdb.dat.bak' files. But i cannot, what ever i try get these files off my old machine the reason being it looks like they are owned by apache :(

Tonight i tried the backup_albums.php script on my Gallery1 installation in the hope that, that may bring those files down, but that script would not work because of an open basedir problem.

Somebody must have come across this problem before, how can i get around it?

TIA

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-09-05 14:39

you need those albumdb.dat files and other .dat files.

please see:
http://codex.gallery2.org/index.php/Gallery2:migration

if you're ready to lose comments, users, ..., there's another option:
http://codex.gallery2.org/index.php/Gallery2:How_To_Restore_From_Backup "from storage directory only"

 
Martin F

Joined: 2006-09-02
Posts: 2
Posted: Tue, 2006-09-05 22:53

Thanks for your reply.

However I have already been through your first link as it's stickied at the top of this forum and your second link is only applicable to Gallery 2 installs. :(

Anymore ideas?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-09-06 00:49

no, the second link is not just applicable to restoring from g2 installations.
it won't work as flawlessly for g2 album/ dirs, but it will do the job (add item from server method).

anyway, ask your webhost to get your complete album/ folder from g1, including albums.dat. it shouldn't be very difficult. and once you have it, you can complete the normal g1->g2 import process.