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
-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:
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
-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 -/
-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
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
On Sun, 12 Apr 2015 09:44:56 -0700, Wayne Davison wrote:
rsync -aiv --include=foo/file --include='*/' --exclude='*'
rsync.example.net::module/ /dest/
Another issue is as follows: if I have known that the `foo/file' is
located under some sub-directories under a folder named `bar' in in the
On Sun, 12 Apr 2015 09:44:56 -0700, Wayne Davison wrote:
You'd use filter (include/exclude) rules. See in the man page about its
notes on how rsync requires you to include all directories in order to
traverse the tree and you'd end up with something like this:
rsync -aiv --include=foo/file
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/*
-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
with these rsync rsync [...] /var/ /dir/
rsync [...] /etc/ /dir2/
And exclude file: excl
/apache2/*
That will exclude both /var/apache2/*
and/etc/apache2/*
How can I tell rsync I want /var/apache2 excluded, but not /etc/apache2?
I
-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
12 matches
Mail list logo