B2_Command_Line_Tool icon indicating copy to clipboard operation
B2_Command_Line_Tool copied to clipboard

Add exclude option

Open marcobarrios-fi opened this issue 6 years ago • 4 comments

Please add en exclude option (--exclude) that can be used to exclude a directory or file without using regex (at least from the user's perspective). This would be most useful if several files and directories could be excluded simultaneously, for example by issuing --exclude <1st directory or file> <2nd directory or file> or by allowing multiple exclude statements, for example --exclude <1st directory or file> --exclude <2nd directory or file>. In my opinion, this would make easier to construct the commands. Thank you!

marcobarrios-fi avatar Oct 06 '18 22:10 marcobarrios-fi

I want to second this. If a user wants to exclude a directory, then simply stating the path to that directory would seem a lot simpler than having to create a regex statement.

cweinhofer avatar Oct 14 '18 12:10 cweinhofer

pull requests are welcome

ppolewicz avatar Oct 15 '18 04:10 ppolewicz

I think also, it could use the rsync syntax for excluding. https://rsync.samba.org/

sirleech avatar Apr 10 '20 01:04 sirleech

I found the --excludeRegex quite hard to use, as a rsync and s3 cli user.

sirleech avatar Apr 10 '20 01:04 sirleech