|Posted: Tue, 2010-11-30 03:02|
I just recently upgraded from Gallery1 to the latest Gallery2 and for all intents and purposes it went perfectly and my gallery looks and works great. I've been a user of gallery for many many years and have resisted upgrading since my original server was so old it couldn't meet many of the requirements of the modern gallery installations.
Anyway, I decided to share my gallery with a bunch of different domains that I host. I have two physical servers which I'll call server1 and server2. Server1 hosts three domains (virtual hosts using different web home directories) and server2 hosta 1 domain. Server2 points to the MySQL database of server1 but they each use a local copy of g2data where the album is stored. I could have used NFS to have server1 export g2data to server2 but my galleries don't change much so I thought I'd just use rsync between the two whenever a change happens (maybe that's not a good idea -- I don't know).
So today I make some major reorg to my albums by grouping many top level albums under a common parent just to clean things up and added a new top level album (I didn't add any photos). I meant to make server1 the master and do the reorg and just rsync the g2data directories and all would be fine. Unfortunately I accidently did the reorg on server2 so the g2data directories changed on server2 and not on server1 yet the common database that both use changed to reflect the new reorg.
So here's my conundrum. I expected the server1 gallery to be all screwed up since it was using an updated database that I assumed would have reflected a different taxonomy so I didn't think gallery would be able to find the files in its g2data/albums directory. Yet both galleries are working perfectly for reading. The only thing I couldn't do is add photos to the new albums that I added where there wasn't even a directory for in the old (server1's) g2data/albums directory.
I realize not many posts complain about things working but I'm just wondering how this is possible since I'm new to using this backend database for gallery and I don't really understand everything in the g2data directory (other than the albums directory).