G1 to G2 Migration Questions

labanex

Joined: 2004-08-21
Posts: 10
Posted: Wed, 2004-08-25 18:57

I like the new interface for G2 and I like how it works. But I do have a couple of questions. I have four G1 running on my server.

http://www.ymp.net/dragons/photos/ - 12,000 images stored
http://www.ymp.net/metro/ - 1,500 images stored
http://www.ymp.net/allahfamily/gallery/ - 1,400 images stored
http://www.ymp.net/antonio/g/ - 2,800 images stored

I was reading about the migration of G1 to G2. If I went through this process, since G2 is complete new program in itself, how do I safely convert my current photo album to the new application without loosing images, comments, number of views, and other data, including member information. I would like to keep the same pathways for images and the application. How would I go about doing this? Would I rename the directories of the application and do nothing to the image storage pathways? What do I do?

Also, does G2 would well in Mambo 4.5?
http://www.ymp.net/antonio/says/

Any help will be appreciated. Thank you!
Antonio
http://www.ymp.net/

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Wed, 2004-08-25 22:00
labanex wrote:
I was reading about the migration of G1 to G2. If I went through this process, since G2 is complete new program in itself, how do I safely convert my current photo album to the new application without loosing images, comments, number of views, and other data, including member information. I would like to keep the same pathways for images and the application. How would I go about doing this? Would I rename the directories of the application and do nothing to the image storage pathways? What do I do?

Don't forget that G2 is "alpha", which means that you should not replace your G1 installations with G2 installations. We want you to try G2, but don't use it as your only gallery.

The first thing that you would do would be to install G2 on your server and create a new data directory for it.

When you have G2 set up, try importing the users and albums from your G1 gallery. Your G1 gallery will not be changed or affected, but G2 will copy the data into its own files and databases.

I will be very eager to hear how your import process goes. You might have to only import a few albums at a time since you have a large number of images.

Please let us know how it goes! Thanks!

 
labanex

Joined: 2004-08-21
Posts: 10
Posted: Wed, 2004-08-25 23:30

Okay I see, good idea. In fact, I will start doing that as soon as I finish with my mambo site. Again I love Gallery 1 and Gallery Remote, but I can see how Gallery 2 is much better.

I can start importing the album a few at a time, then once it is done, I will wait for the stable release, upgrade it, then transfer the links over to the new gallery. Then delete the Gallery 1 sites. I was also thinking of making Gallery a part of mambo. I have so many plans for my site, but so little knowledge about php and mysql. I am learning though and I think I have the basic deal down.

Thank you for your idea.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2004-08-26 17:35

We probably won't have a direct upgrade path from G2 alpha to G2 beta, but we should have an upgrade path from G2 beta to G2 Gold. Please use G2 and test it. Let us know how it works for you - but please be prepared to start over with G2 from scratch when we get to a stable point.

Also, I really want to know how your imports go - there aren't very many people with as many images as you, (I do, but that's another story). Thanks!

 
photo-web.net
photo-web.net's picture

Joined: 2004-12-05
Posts: 14
Posted: Sun, 2004-12-05 16:39

Hi,

I am a site (WWW.Photo-web.net) with 4,000 pictures. I
try the new G2 Alpha 4 but I have prob with the migration of the user from G1 to G2. G2 don't find any users in G1. Why ?

(G2 is tested on www.viet-linux.org/gallery2 )
:o
Thanks for this nice soft !!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2004-12-06 00:40

Right now we don't support migrating users from outside data sources. In your setup, the users are actually stored in your CMS.

Jesse, I have an idea. How about we add some code to 1.5 which lets the site admin get the complete user list? We could add a tool that turns the CMS user database into the same form that Gallery expects so that the migration code could pick it up and use it. Actually I guess we could just add that code to a contrib dir in the migration module and tell people to use it...

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2004-12-06 07:33
bharat wrote:
Right now we don't support migrating users from outside data sources. In your setup, the users are actually stored in your CMS.

Ah, I didn't get a chance to look at the source site today. So, no, we don't support CMS users. It's not a beta requirement, either - and I'm pretty sure that I won't be working on it until embedding G2 is straightened out.

bharat wrote:
Jesse, I have an idea. How about we add some code to 1.5 which lets the site admin get the complete user list? We could add a tool that turns the CMS user database into the same form that Gallery expects so that the migration code could pick it up and use it. Actually I guess we could just add that code to a contrib dir in the migration module and tell people to use it...

I'm not sure that I follow.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2004-12-06 09:03

The idea is that we (and by "we" I mean "you") write a little script that uses the Gallery 1.x API to grab all the user info from whatever system that Gallery 1.x is embedded into. If init.php is set up properly, then we can use GalleryUserDB::getUidList() to get the list of all users, then load them up one at a time. Then, stick them all in memory and fill the .users directory (which probably only contains the admin user) with all the info that we need in a format that the migration module can slurp right into G2.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2004-12-06 17:16

I hoped that wasn't what you meant. What's the user story on this?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2004-12-09 00:24

Ha! I'm busted. I haven't formulated a good user story yet. Let's move this back to the back burner until we get further with CMS integration, as we originally planned.