Back-up

Maria

Joined: 2002-09-08
Posts: 18
Posted: Sun, 2002-09-08 15:43

What's the easiest way to make a back-up of my gallery to use in case of an emergency?

I tried to copy the albums folders from my server but that didn’t work at all when I needed to rebuild one of my albums. So please, explain how I make a back-up of my albums incl. comments etc.

Btw - Gallery is just EXCELLENT! :grin:

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-08 20:48

Check out the User Guide->Backup and Restore. The entry is a bit bare-bones
but maybe something with author access can spruce it up some. If you are
under unix, the best bet is to just tar-gzip up the entire directory. Store that
someplace safe and unpack it when you need it. But not over your existing
install, always rename that first just in case. If you are under Windows, well
there are programs that can do tar gzip there too I believe, Powerarchiver
for one I think. Otherwise.. hmm, plain ole zip isn't that good if you're going
to transfer to another non-windows OS, otherwise it should be fine.

Whatever you do, try unpacking the newly created archive IN A DIFFERENT LOCATION
to be 100% sure of it's integrity. Then just delete the second copy when you're
satisfied.

 
jacksdad
jacksdad's picture

Joined: 2002-08-24
Posts: 95
Posted: Sun, 2002-12-01 14:34

Okay, I am running my gallery on:
Linux 2.4.9-31enterprise, I have shell access.

I tarred (tar -cvzf) up everything in the gallery directory.
I renamed my gallery directory to ensure I have a working copy.
I created another gallery directory and untarred (tar -xvf) gallery.tar into the directory.

The gallery would show up, however, If I clicked on an thumbnail I would get a back page, and when I would try and log in as admin, I would get permission denied errors.

Now I ran into a permission issues:

***This is the correct gallery ***
drwxrwxr-x 2 nobody nobody 4096 Dec 1 08:28 album01
-rw-r--r-- 1 nobody nobody 77 Dec 1 08:28 albumdb.dat
-rw-r--r-- 1 nobody nobody 59 Dec 1 08:28 albumdb.dat.bak
-rw-r--r-- 1 nobody nobody 0 Nov 25 16:12 albumdb.dat.lock
drwxrwxr-x 2 nobody nobody 4096 Dec 1 07:46 Daycarefieldtrip
drwxrwxr-x 2 nobody nobody 4096 Dec 1 07:34 Halloween2002
-rw-r--r-- 1 nobody nobody 11 Dec 1 08:20 serial.dat
drwxr-xr-x 2 nobody nobody 4096 Dec 1 08:07 .users

**After untarring (tar xvf **
drwxr-xr-x 2 theshane theshane 4096 Dec 1 08:28 album01
-rw-r--r-- 1 theshane theshane 77 Dec 1 08:28 albumdb.dat
-rw-r--r-- 1 theshane theshane 59 Dec 1 08:28 albumdb.dat.bak
-rw-r--r-- 1 theshane theshane 0 Nov 25 16:12 albumdb.dat.lock
drwxr-xr-x 2 theshane theshane 4096 Dec 1 07:46 Daycarefieldtrip
drwxr-xr-x 2 theshane theshane 4096 Dec 1 07:34 Halloween2002
-rw-r--r-- 1 theshane theshane 11 Dec 1 08:20 serial.

So, permissions got changed and I don't have rights to change them back to be owned my apache (nobody nobody).

Ideas?

Thanks

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2002-12-02 16:50

Hi. You should re-post this in the Troubleshooting forum.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2002-12-15 23:00

The problem is that only the root user can change the file ownership. Just chmod them 0777 and you'll be all right.