[Solved] Problem with backup_albums.php

Bafu

Joined: 2003-12-22
Posts: 12
Posted: Fri, 2005-04-15 21:01

I want to upgrade to 1.5, so I've been trying to get the new backup_albums.php working... I got it to work a few months back when I got the file from one of the 1.5 Release Candidates (I didn't actually upgrade though, was just to try the backup php), but now I just can't get it to work.
I chmoded my config.php and .htaccess to 777, and my setup dir is 755, uploaded the backup_albums.php to my gallery dir, but when I try running it my browser gives me :

Fatal error: Call to undefined function: getrequestvar() in /home/virtual/site84/fst/home/bal/public_html/gallery/backup_albums.php on line 35

Any ideas anyone? :(

----

Gallery URL: http://bal.spawnpoint.org/gallery/
Gallery version: 1.4.4-pl5
Apache version: 2.0.52
PHP version: 4.3.10
Operating system: Linux

 
Bafu

Joined: 2003-12-22
Posts: 12
Posted: Sat, 2005-04-16 15:47

Hmm, well I guess no one has had this problem...
Is there anywhere I can still download the 1.5 RCs so that I can try the older versions of the backup_albums.php (I've read it was changed in the later versions).

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2005-04-16 17:22

Hello,

every version of backup_albums.php is for that Gallery you can find it in.

So backup_albums.php from 1.4.4 is for 1.4.4 :)
and ... for 1.5 <drumroll> is for 1.5.

Different Gallery versions have different code. And the changes from 1.4.4 to 1.5 were A LOT !

Thats the reason why it doesnt work.

Regards,

Jens

 
Bafu

Joined: 2003-12-22
Posts: 12
Posted: Sat, 2005-04-16 18:07

Doh, I'm so incredibly stupid. =)

When you released 1.5 RC2 (or 1?), you added a note about the backup_albums.php in the news item on the site, so I thought it was something new from 1.5, and I tested that one and it worked on my 1.4 gallery, when 1.4 actually had its own backup_albums.php I could have used all along.

Sorry for wasting your time, and thanks! ;)

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2005-04-16 22:08

Its not wasting time.

Maybe A LOT user had the same problem ... now you solved it :)

Regards,

jens

 
egrep

Joined: 2003-03-05
Posts: 5
Posted: Sun, 2005-09-25 23:57

I cannot find anywhere in the FAQ's or this forum on how to "restore" the backup file created with the backup_albums.php script. Is it just a tar -zxvf? Looking at the tar file, I see that it is a bunch of files out of the "albums" folder. Where do the config files get backed up to? I am looking to upgrade from 1.5 to 1.5.1, and I want to make sure my config stays intact. I have renamed the gallery path, so I guess I rename it back to "gallery", un-tar the new version over the old one, and then rename the folder back to the original name. Sound right?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-09-26 23:51

The backup script only backs up the albums dir, if you want a backup of the configuration as well, make a backup of gallery/config.php

After that, all you should have to do is to extract the new version of Gallery on top of the old one.

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org