On Sun, 02 Nov 2003 17:24:35 -0800, MadMax muttered:
> Can you share the script/crontab etc you use to accomplish this?

The script follows. Note that I'm just synchronizing some directories from
my $HOME -- stuff left sitting in there won't get synchronized (though one
could probably fix this pretty easily).

(The crontab line is:
        30 5 * * * $HOME/bin/sync-stuff
so it'll run every day at 05:30)

#!/bin/zsh

# location to back up to
LOC=/mnt/backup/andfarm-home

# list of directories to back up
BACKUP='bin MozillaFirebird doc evolution cdev' 

cd $HOME
# Back up dotfiles
echo Backing up dotfiles
rsync -a --delete .* $LOC

# Back up other important stuff (except MP3s)
for x in `echo $BACKUP`
        echo Backing up $x
        rsync -a --delete --delete-excluded --exclude "/doc/mp3**" $x $LOC

echo Backup/sync process complete

-- 
Andrew Farmer
[EMAIL PROTECTED]

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to