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.
Posts: 8601
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
Posts: 99
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.
Posts: 8601
Migration works quite well.. you still need to migrate in chunks as it may timeout if you do too many albums at once.
Posts: 974
how long ago was your initial migration?
Anyway, you could use galleryadd2.pl to upload to G2, if I ever release it...