> Hi all, > > I am having *massive* problems trying to exclude a single directory from an rsync. > > I have serv1 and serv2. I am trying to rsync /foo/test from serv1 to /foo on serv2 > I want to exclude the directory /foo/test/dir1 So I try: > > rsync -av --exclude-from=/foo/rsync.excludes /foo/test serv2:/foo > > rsync.excludes contains: > /foo/test/dir1/ > > > This is not working. > > I also try: > > rsync -av --exclude=/foo/test/dir1/ /foo/test serv2:/foo > > and the exclude still does not work. > > I have also tried other variations like: > > rsync -av --exclude=/dir1/ /foo/test serv2:/foo > > also to no avail. >
rsync -av --exclude=/test/dir1/ /foo/test/ serv2:/foo/ rsync -av --exclude=/dir1/ /foo/test/ serv2:/foo/test/ Thank you for clarifying the issue with regard to the fact that the exclude pattern is relative to the destination path. The fact that: rsync -av --exclude=/foo/test/dir1/ /foo/test/ serv2:/foo/ does not work seems wrong. What should be excluded is being specified with no ambiguity. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
