Either format is correct. However, there is no quoting or escaping in
the file. So:
- filename1
- file name 1
or without the -
On 1/3/20 1:45 PM, @lbutlr via rsync wrote:
> 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?
>
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb Phone:(407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. ke...@futurequest.net (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page: https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
signature.asc
Description: OpenPGP digital signature
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html