Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Francis . Montagnac
Hi, On Mon, 13 Apr 2015 12:59:07 -0400 Kevin Korb wrote: Hmmm, according to my interpretation of the man page (I am on 3.1.1) that is supposed to work however when I test using the -/ /etc/passwd example the / seems to have the same effect as commenting the line. I get /etc/passwd copied

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Then I would say that the text I pasted is in the wrong section of the man page and needs to be moved into the filter rules section. On 04/13/2015 02:02 PM, francis.montag...@inria.fr wrote: On Mon, 13 Apr 2015 13:45:18 -0400 Kevin Korb wrote:

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Francis . Montagnac
On Mon, 13 Apr 2015 13:45:18 -0400 Kevin Korb wrote: The +/- syntax absolutely works in an --exclude-from or --include-from file I use it all the time. However, apparently the -/ syntax does not work there. So, I am not sure if the man page is wrong or if this feature just isn't working

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was actually in the include/exclude section of the man page not the filter section. However, your syntax does work. The +/- syntax absolutely works in an --exclude-from or --include-from file I use it all the time. However, apparently the -/

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When I was testing I had a filter file that contained: - -/ /etc/passwd The commands I was testing with were: rsync -vvaiinx --filter=merge filterfile.txt /etc/ /tmp/ | grep passwd and rsync -vvaiinx --filter=merge filterfile.txt / /tmp/ | grep

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Harry Putnam
francis.montag...@inria.fr writes: Hi, On Mon, 13 Apr 2015 12:59:07 -0400 Kevin Korb wrote: Hmmm, according to my interpretation of the man page (I am on 3.1.1) that is supposed to work however when I test using the -/ /etc/passwd example the / seems to have the same effect as commenting

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Harry Putnam
Kevin Korb k...@sanitarium.net writes: -/ /var/apache2/* Thanks for the input, but unless I'm doing something else screwy, that does not appear to work here. I put your line verbatim into my exlcude file (near the top) /pkg/* /sadm/* /cache/* /opt/csw/cache/* -/ /var/apache2/*

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hmmm, according to my interpretation of the man page (I am on 3.1.1) that is supposed to work however when I test using the -/ /etc/passwd example the / seems to have the same effect as commenting the line. I get /etc/passwd copied whether the

Re: How to discern when like dir names exist in 2 places

2015-04-13 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Put this line in your file: - -/ /var/apache2/* On 04/13/2015 12:17 PM, Harry Putnam wrote: with these rsync rsync [...] /var/ /dir/ rsync [...] /etc/ /dir2/ And exclude file: excl /apache2/* That will exclude both /var/apache2/* and