Exclude-from file format?
@lbutlr
kremels at kreme.com
Fri Jan 3 18:45:34 UTC 2020
I have seen two main styles in examples for using rsync with exclude-from.
The first is simply a list of filename, one per line.
The second is a list of filenames, one per line, prefixed with either a - or a + to indicate exclude/include. Which is correct?
Also, none show the correct style with a filname containing spaces, though I assumed quoting is OK
Exclude1.txt:
- filename1
- “file name 1”
Exclude.txt:
filename1
“file name 1”
Which of these will exclude both filename1 and “file name 1” anywhere they appear in the source?
More information about the rsync
mailing list