[Sussex] Rsync and excluded files
Andy Smith
andy at lug.org.uk
Sun Sep 24 16:39:02 UTC 2006
On Sun, Sep 24, 2006 at 12:42:13PM +0100, Bob Williams (SLUG) wrote:
> I'm having trouble getting rsync to read/act on my excluded files. The
> significant line in my script is
>
> /usr/bin/rsync -av --delete
> --exclude-from=/home/bob/Documents/scripts/backup/excludedfiles
> /home/bob /home/pub/My_Pictures /home/pub/Shared_Documents
> /home/pub/HilsComputer /media/toshiba/backup.0
>
> and the contents of '../excludedfiles' is
>
> /home/bob/bacula
> /home/bob/.opera/cache4
> /home/bob/Utilities
> /home/pub/downloads
> /home/pub/vmware
The paths in the exclude file should be relative to what you're
syncing, i.e. if you're rsyncing /home/bob/ and want to exclude
/home/bob/bacula then the entry would be "bacula".
Incidentally, have a look at rsnapshot. It's really nice for staged
snapshots using rsync.
Cheers,
Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20060924/9475bfce/attachment.pgp
More information about the Sussex
mailing list