mirroring

bpd@darb.net

Joined: 2002-08-20
Posts: 101
Posted: Tue, 2002-10-08 23:49

hello

i have setup mirroring of my gallery on two servers of mine

i have written a script that shuts apache down, moves out all "site-specific" files (such as access_log and customisations to albums.php that outline which mirror youre at) .. it then tarballs the gallery, transfers it to the other server, the other server then extracts it.

the problem is however that ive missed something that i also need to exclude. The second server has different paths to the gallery, and the URL is of course different. Can you tell me which file / directory to exclude when creating the tarball so that the "configuration" on the mirror remains intact ... does that make sense?

At present i have to re-run ./configure.sh and fix up the pathing because after the mirror update it has inherited the config of server A.

http://gallery.darb.net/

vs

http://usa.darb.net/gallery/

Cheers !

:smile:

 
BorgKing
BorgKing's picture

Joined: 2002-09-12
Posts: 314
Posted: Wed, 2002-10-09 09:56

config.php is the only file where paths are stored, I suggest you don't copy that file to another server.

 
bpd@darb.net

Joined: 2002-08-20
Posts: 101
Posted: Wed, 2002-10-09 11:16

thanks , im amazed a php file actually stores the config ...b ut cheers