Sitecopy

Sitecopy which can be found at http://www.lyra.org/sitecopy/, is a nifty little tool to keep your site updated - ofcourse it's a native *nix tool which compiles without problems on fedora 5.

My .sitecopyrc configuration file

site mysite                     # Arbitrary name you use for sitecopy
    server mysite.mydomain      # ftp-host
    username myuser             # ftp-username
    password mypassword         # ftp-password
    local /www/mysite/base/dir  # Your local repository of the site
    remote /                    # the root-directory on the remote server
    exclude *.swp               # exclude files ending on *.swp
    exclude /CVS/*              # exclude ALL CVS stuff for server in different dirs
    exclude /CVS
    exclude /*/CVS/*.*
    exclude /*/CVS
    exclude /*/*/CVS/*.*
    exclude /*/*/CVS
    exclude /*/*/*/CVS/*.*
    exclude /*/*/*/CVS
    exclude /*/*/*/*/CVS/*.*
    exclude /*/*/*/*/CVS
    exclude /*/*/*/*/*/CVS/*.*
    exclude /*/*/*/*/*/CVS
    exclude /*/*/*/*/*/*/CVS/*.*
    exclude /*/*/*/*/*/*/CVS

Initiating a new site

Go to your homedirectory and initiate dirctory and file

cd ~
mkdir -m 700 .sitecopy
touch .sitecopyrc
chmod 600 .sitecopyrc

Add content to your .sitecopyrc file (as the above example). Then you need to start it up. You may already have the site up and running in which case you just want to fetch the site to your local directory.

sitecopy --fetch mysite

Now if the k

Update serverfiles from files on client

sitecopy -u mysite

Update local source files on client from server

Valid XHTML 1.0 Transitional