[SOLVED] Importing a Sub-Album

watsonalgas

Joined: 2005-02-01
Posts: 52
Posted: Tue, 2005-05-10 21:40

I was just wondering if there was a way to import only a sub album from Gallery 1 and not the whole album. My friend has version 1 and I have an album through that, and I wanted to just import my album since my server doesn't have enough space for the whole thing. I've tried it but it doesn't work because of the album.db file, I don't know if there was a way to manipulate this to where it will work...thanks.
----

Gallery URL (optional):watsonalgas.com.ru/gallery2
Gallery version: 2 beta 2
Webserver (with version):
Datatabase (with version):MySQL
PHP version (eg 4.2.1): 4.3.1
phpinfo URL (optional):
Graphics Toolkit(s): GD
Operating system: FreeBSD
Web browser/version: Firefox
G1 version (for migration bugs): 1.4.4 pl6

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-05-10 21:48

When you start the migration enter the top level albums directory.. in the next step you can pick only the subalbum you want to import.

 
watsonalgas

Joined: 2005-02-01
Posts: 52
Posted: Wed, 2005-05-11 00:34

Well, I can't upload all the albums because they are over a gig, and I don't have that much space (plus it would take days), and the gallery I want to import from is on a different server. So I think it's giving me an error that says it's missing a file from one of the albums I don't want (and don't have on my server). Another solution may be if I can enter a different server in the migration path? I don't think this is possible, but if yes woul dit be http:// etc... or how would I do it?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-05-11 01:07

no, you can't migrate over http. you could try copying the album dir of the subalbum you want and the top level dat/db files, whatever they are called.. and the user data files. put those on your server. then do the migration pointing to that dir.. if it works right, it should list all the albums, but just pick the one you actually copied over the album dir for.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Wed, 2005-05-11 01:10

Okay, here's what you do:
1) Have your friend move your album to the top-le el of the gallery1
2) Set up a gallery1 on the new server. Make sure that it works by creating at least one album and uploading one image. Please use the latest available version.
3) Copy the album from server1 to server2 and put it in the albums/ directory of the gallery1 installation on server2
4) Visit the gallery1 installation on server2 and make sure that the copied album shows up and is correct.
5) Import from your new gallery1 into your new gallery2
6) You are done!

That's the full process, and there really is not a faster way, unless you don't care about captions, click counts, or any other metadata from gallery1, in which case you can simply "add from local server" and just import the whole set of images.

Let us know if you have any further questions. THanks!

 
watsonalgas

Joined: 2005-02-01
Posts: 52
Posted: Wed, 2005-05-11 05:27
jmullan wrote:
Okay, here's what you do:
1) Have your friend move your album to the top-le el of the gallery1
2) Set up a gallery1 on the new server. Make sure that it works by creating at least one album and uploading one image. Please use the latest available version.
3) Copy the album from server1 to server2 and put it in the albums/ directory of the gallery1 installation on server2
4) Visit the gallery1 installation on server2 and make sure that the copied album shows up and is correct.
5) Import from your new gallery1 into your new gallery2
6) You are done!

That's the full process, and there really is not a faster way, unless you don't care about captions, click counts, or any other metadata from gallery1, in which case you can simply "add from local server" and just import the whole set of images.

Let us know if you have any further questions. THanks!

This worked beautifully, thanks. I guess I should have thought of that, cause it is logical...oh well, you live you learn. Thanks.