For keeping directories (such as my home dirs, /usr/src/ dirs) in synch accross
machines I use unison. For synchronizing multiple machines (unison works best
in a paired situation) the package tra looks promising. To actually backup my
data I use a two step process.

First I have a script that exports my sql tables and LDAP directory into one
location (eg. /opt/backup).  This script also backs up important things in
cgi-bin, /etc/ and so on.  I am left with everything I want in one place
(usually date stamped tarballs..

I then use backuppc (http://backuppc.sourceforge.net) to remotely store and
manage the backups from various systems (backuppc can use rsync, samba, nfs for
actual transport).

FYI for debian users, I also include the output from dpkg -l (eg. dpkg -l >
hostname.installed-packages.txt).

--
No trees were harmed in the transmission of this message, however a large number
of electrons were seriously inconvenienced.


Quoting Shawn <[EMAIL PROTECTED]>:

Hi all.  I'm having problems getting an rsync backup script to work properly,
and was hoping for a little help - I can only read manuals for so long.. :)

Here's the script:
#--------------------------------------------------------------------------------
SOURCE="/home/sgrover"
#INCLUDE="/home/sgrover/bin/backup/include.txt"
EXCLUDE="/home/sgrover/bin/backup/exclude.txt"
DESTINATION="/home/backup"

#Destination Server
#DESTSRV="[EMAIL PROTECTED]"
#DESTSRV=""

rsync -va --exclude-from=$EXCLUDE $SOURCE $DESTINATION
#--------------------------------------------------------------------------------

And my exclude file:
#--------------------------------------------------------------------------------
*.iso
- /home/sgrover/temp/*
- /home/sgrover/Local/azureus_downloads/
- /home/sgrover/Mail/*
- /home/sgrover/Mail.old/*
- /home/sgrover/mnt/*
- /home/sgrover/mntiso/*
- /home/sgrover/wallpaper/*
#--------------------------------------------------------------------------------

The problem I'm having is that my exclude files aren't getting excluded. I've
tried a couple different settings in the exclude file - with and without the
"- " (dash space), with and without the /* on the end - no luck. The
contents fo the directories are getting copied over anyways. I want these
excluded directories ignored outright....

What I'm trying to do is get a basic backup script in place, then grow it over
time to become more robust (daily incremental backups into rotating
directories, etc.). I did find some scripts online, but they weren't working
for me, and I suspect I need to understand the basics anyways. A simple
rsync command is easy to do, it's with the excludes that are throwing me....
Once I get this part resolved, then I can move on to doing the backup to a
different server.

Any tips??  Thanks muchly.

Shawn




_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying




--------------------------------------------------- This message was sent using Echostar Secure Webmail


Attachment: pgp8B68zxxCsb.pgp
Description: PGP Digital Signature

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to