Applying Snapshots

steveoracle

Joined: 2005-02-01
Posts: 11
Posted: Mon, 2005-02-07 13:43

Hi All

I have an older version of Gallery 2 and would lik to apply a nightly snapshot update. Afetr downloading and unzipping this how do I install it?

Steve

:D

 
Metrax

Joined: 2005-02-06
Posts: 65
Posted: Mon, 2005-02-07 13:55

delete the old files (not the g2data directory!!!!)
upload the new files
execute http://<url-to-your-gallery/upgrade/

-Robert

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-02-07 14:00

steveoracle, it depends how old your G2 version is. Upgrading was introduced in G2 alpha 2 (or alpha 4?) I guess. If your version is older, you'll have to start a new gallery from the ground.

 
steveoracle

Joined: 2005-02-01
Posts: 11
Posted: Mon, 2005-02-07 14:12

I only downloaded it last week so it's either G" Alpha 3 or 4. I can't remember off hand. Which files do I need to delete and upload?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-02-07 14:35

- Best solution: cvs (or win cvs for windows):
once configured, you can update your G2 simply by executing the command "cvs update -dP"
But it will require you to setup/install cvs on your server. See the cvs instructions on the "Download Now" page.

If you don't want to setup cvs or don't have cvs access on the server that runs G2 (i.e. on pretty all cheap hosting plans), you'll have to
1) download a nightly snapshot (from jmullans page)
2) make a copy of config.php of your current G2
3) delete all G2 files, all but the g2data directory and its contents
4) decompress/unarchive the nightly snapshot to the same location where the old G2 was
5) copy the config.php to your new G2
6) browse to your G2, now you should see a "upgrade" wizard

 
steveoracle

Joined: 2005-02-01
Posts: 11
Posted: Mon, 2005-02-07 16:00

That's fantastic mate. Thanks for your help. I'll try it out tonight.

Steve

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Mon, 2005-02-07 17:36
valiant wrote:
- Best solution: cvs (or win cvs for windows):
once configured, you can update your G2 simply by executing the command "cvs update -dP"
But it will require you to setup/install cvs on your server. See the cvs instructions on the "Download Now" page.

If you ... don't have cvs access on the server that runs G2 (i.e. on pretty all cheap hosting plans) ...

As long as you have SSH access (even most cheap hosting plans allow it) you can get cvs binaries and upload it to your host (you don't have to be root) and use it. Don't forget to set environment variable CVS_RSH=ssh

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-02-07 18:08

my point was that most cheap hosting plans don't offer ssh access. ;)