[Sussex] Rsync and excluded files

Andy Smith andy at lug.org.uk
Sun Sep 24 18:11:13 UTC 2006


On Sun, Sep 24, 2006 at 06:52:26PM +0100, Bob Williams (SLUG) wrote:
> Thanks Andy. Now I need some help with trailing slashes. I'm actually
> rsyncing /home/bob (no trailing /) so that the backup creates a
> directory bob on the destination disk (an external USB drive), and
> recurses into all the directories below that. The same applies to the
> other sources. So, in my excludedfiles file, should I put
> 
> bacula
> 
> or
> 
> /bacula
> 
> or
> 
> ../bacula?

I do not believe you ever should have leading dots or slashes in the
exclude file.  You can confirm by using the option that only
simulates what it will do, and the option to print all files it
transfers.  Then just use the same format as it prints to put in
your exclude file.

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/da8d34f9/attachment.pgp 


More information about the Sussex mailing list