I have the following use case: I only want to back up files ending with .gz. I could write a complicated exclusion rule to exclude fall files not matching that string but that would be tedious.
Consequently I've added another option --include which is mutually exclusive wrt --exclude and which allows specifying and inclusion pattern instead.
To retain backwards compatibility if none of the two options are given, then all files matchin -tmp will be excluded.
I have the following use case: I only want to back up files ending with
.gz
. I could write a complicated exclusion rule to exclude fall files not matching that string but that would be tedious.Consequently I've added another option
--include
which is mutually exclusive wrt--exclude
and which allows specifying and inclusion pattern instead.To retain backwards compatibility if none of the two options are given, then all files matchin
-tmp
will be excluded.Should be merged only after #22