Hi,
Quick question. Given the following directories:
home/scp/log
home/scp/bin
home/scp/test
home/scp/conf
home/scp/conf.blah
How can I include only home/scp/conf* and exclude everything else from
home/scp?
I was hoping something like this would work:
+home/scp/conf*
-home/scp
Or:
+home/scp/conf*
-home/scp/*
However, neither work though they do have opposite effects. The first
excludes all home/scp and the second includes all home/scp.
Do I have to enumerate explicitly, at the same level, all I want to
include / exclude, eg:
-home/scp/log
-home/scp/bin
-home/scp/test
+home/scp/conf*
By the way in the man page it says that if it comes across a file that
matches an include / exclude pattern rsync will act accordingly and
include / exclude that pattern. In other words, stop at the first
match. But if the file happens to be a directory I am assuming this
means it will skip the directory and all the files contained therein,
arguably the most sensible and normal thing to do. However, on a more
anal reading of the man page it could be argued that each file within
the directory should be checked anyway since they might match against an
earlier include pattern. In essence my nit-picking point is that the
man page does not explicitly say that more deeply nested files are
automatically ignored.
Cheers James
PS For the sake of brevity I've put all the examples together though I
keep them in separate include and exclude files and use
include-from=include and exclude-from=exclude. I am assuming this will
not effect the results.
--
James Jones, GMRS Software GmbH,
Innsbrucker Ring 159, 81669 Muenchen
tel: (089) 680792-30, fax: (089) 680792-92
mailto:[EMAIL PROTECTED] http://www.gmrs.de