Add Items From Local Server - add whole directories

robinbowes

Joined: 2002-09-20
Posts: 99
Posted: Tue, 2004-09-07 23:17

Hi,

Would it be much of a job to modify the ItemAddFromServer class to allow whole directories to be added and to use the directory names as album names?

This would make it very easy to bulk add a whole load of images.

In particular, it would also make it very easy to bulk add images to G2 when re-creating the database and data directory. All that would be required is to do something like:

- mv g2data g2data.old
- drop database + re-install here)
- add g2data.old as a valid local server directory
- add all images into new g2 instance.

What do you think?

R.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-09-07 23:36

Probably not too hard, but here are a couple alternative ideas:
- keep your images in G1 and remigrate after you clear your G2 db
- put the image files in a directory under your doc root and use add-from-web to add all the images at once

 
robinbowes

Joined: 2002-09-20
Posts: 99
Posted: Tue, 2004-09-07 23:46
mindless wrote:
Probably not too hard, but here are a couple alternative ideas:
- keep your images in G1 and remigrate after you clear your G2 db
- put the image files in a directory under your doc root and use add-from-web to add all the images at once

I've already considered the G1 idea but my initial migration was rather painful so I discounted that. Is the G1 migration better now?

R.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-09-07 23:51

Migration works quite well.. you still need to migrate in chunks as it may timeout if you do too many albums at once.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Wed, 2004-09-08 05:07

how long ago was your initial migration?

Anyway, you could use galleryadd2.pl to upload to G2, if I ever release it...