Does Gallery 2 Double Disk Space?

anonymous11234

Joined: 2002-12-05
Posts: 135
Posted: Tue, 2005-02-15 00:32

Does Gallery 2 copy the albums directory of Gallery 1 when importing it?
My gallery disk space seemed to double when I upgraded to G2, and imported G1...

521M ./albums (original gallery)
332M ./gallery2/g2data/album (I only imported some of them)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-02-15 00:47

Yes. G2 imports = copies all G1 data.

 
anonymous11234

Joined: 2002-12-05
Posts: 135
Posted: Tue, 2005-02-15 01:00

Ouch! I guess the safest thing to do is when I think I have my gallery 2 okay, just tar and gunzip the original albums directly and save it to my PC?

One of my sites woodshopphotos.com has a 1GB limit on the hosting account. Do you see any way I can upload to G2 without raising that limit? It's using about 800 MB right now.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-02-15 11:42

Good point, I see the same problem coming for my hosted webspace.

I thought I'd do it as follows:
1. Get the G1 albums on a server at home
2. Upgrade from G1 to G2 on the server at home
3. Delete G1 on the webspace
4. Upload G2 with g2data and the database to the webspace

Problem: The webserver user is a different one on my private server at home and on the webspace. So, you'll have to take care of that, chown (change the owner) of the g2data dirs and files recursively to the new webserver user.

Alternative: Incremental upgrade
Upgrade a set of albums, then delete the corresponding old G1 albums. Upgrade the next set of albums....

Alternative: Ask your webhost admin if he can give you more diskspace just for an hour or so.

Anyway, backup your G1 before!

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Tue, 2005-02-15 22:39

Alternative: Upgrade from G1 to G2 at home, and use export/import module to incrementally move the albums from home server to your new G2 webspace (the situation that you describe was one of the reasons to write this module in the first place </shameless_plug>