rsync excluded file syntax errors

Paul Slootman paul+rsync at wurtel.net
Wed Jun 10 15:56:30 GMT 2009


On Wed 10 Jun 2009, Rahul Nabar wrote:

> I cannot figure out where I am going wrong with my excluded files
> syntax! rsync backups up those folders I'm trying to exclude.
> 
> rsync -av --exclude-from=/etc/rsync_excluded.conf  --delete
> root at polaris::polhome /pol_home_bkup
> 
> 
> cat /etc/rsync_excluded.conf
> - /home/agokhale
> - /home/anand
> - /home/asalazar
> etc.
> 
> These are all top level folders with the same names.
> 
> On the rsync server rsyncd.conf:
> [snip]
> [polhome]
>    path = /home

The excludes are always relative to the transfer root. Hence remove the
/home part (leaving /agokhale, /anand, etc)


Paul


More information about the rsync mailing list