Command line import?

koodawg

Joined: 2011-05-02
Posts: 2
Posted: Mon, 2011-05-02 19:26

Is there a command line import tool? I'm migrating from 1.5 to 2, then 3. So I need to import my albums while preserving hierarchy & captions from v1.5 to v2, then v3.

I am able to import a few albums at a time from v1.5 to v2. But can't do more than that at once due to the memory problem.

I have a large # of images and albums. ~700 albums and about 16GB of images. So obviously this is a tedious PITA to do it a few albums at a time.

What I need is a script that runs server side that will recursively walk through the v1 albums and import one at a time into v2.

Anything like this exist? Any help?

Wouldn't the maintainers consider this a necessity for large galleries to easily upgrade?

Thanks
Mike

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2011-05-02 20:52

I've deleted your duplicate post; everyone monitors all posts, no matter which sub-forum they're in, so there's no need to duplicate content.

Quote:
But can't do more than that at once due to the memory problem.

The only scripts that are around for G2 are written in php, and have (approximately) the same memory limitations before they'll fail. Are you using a G1->G2 import, or are you just adding the images to G2 afresh (serveradd module)? That might work better, and you can zip many albums and import them in one hit. You'll lose comments, titles, etc, of course, that way.

I can't find a reference to the one I have in mind at present, to see if that might help, but I'll look again later.

Quote:
Wouldn't the maintainers consider this a necessity for large galleries to easily upgrade?

Nobody has been actively maintaining G2 for a few years now.

 
koodawg

Joined: 2011-05-02
Posts: 2
Posted: Mon, 2011-05-02 21:31
alecmyers wrote:
I've deleted your duplicate post; everyone monitors all posts, no matter which sub-forum they're in, so there's no need to duplicate content.

Quote:
But can't do more than that at once due to the memory problem.

The only scripts that are around for G2 are written in php, and have (approximately) the same memory limitations before they'll fail. Are you using a G1->G2 import, or are you just adding the images to G2 afresh (serveradd module)? That might work better, and you can zip many albums and import them in one hit. You'll lose comments, titles, etc, of course, that way.

I can't find a reference to the one I have in mind at present, to see if that might help, but I'll look again later.

Quote:
Wouldn't the maintainers consider this a necessity for large galleries to easily upgrade?

Nobody has been actively maintaining G2 for a few years now.

Well we have the same problem migrating from G2 to G3 so this still makes sense to me. Thx.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2011-05-03 01:19

I was involved in the G2->G3 migration tool (at a very very early stage; not recently, at all) and it seemed to go at a considerable lick (as did everything involving G3) - have you tried it?