diff --git a/changelog/unreleased/issue-4278 b/changelog/unreleased/issue-4278 index d85d34df7..250e3cf9f 100644 --- a/changelog/unreleased/issue-4278 +++ b/changelog/unreleased/issue-4278 @@ -6,8 +6,9 @@ The enhancement allows the standard include filter options -i, --include pattern include a pattern (can be specified multiple times) --include-file file read include patterns from a file (can be specified multiple times) -The exclusion or inclusion of filter parameters is exclusive, as in other commands -which use both include and exclude filters. +The exclusion or inclusion of filter parameters is exclusive, as in other commands. +The option --snapshot-summary cannot be used together with any of the +--include or --exclude patterns. https://github.com/restic/restic/issues/4278 https://github.com/restic/restic/pull/5191 diff --git a/doc/045_working_with_repos.rst b/doc/045_working_with_repos.rst index 80ee82c6b..0751f7ac6 100644 --- a/doc/045_working_with_repos.rst +++ b/doc/045_working_with_repos.rst @@ -336,11 +336,10 @@ to those files which your are really interested in. An example could be all pict files from a snapshot: ``restic rewrite -r ... --iinclude "*.jpg" --iinclude "*.jpeg" --iinclude "*.png"``. -Empty subdirectories however will always be preserved. -Totally empty subdirectories (apart from genuine ones) -which have been completey evacuated will not be stored in the new snapshot. -If you specify an ``--include`` pattern which will not include anything useful, you will still -create a new snapshot if the original snapshot contained one or more empty subdirectories. +Empty subdirectories however will be preserved whena filter is defined for them. +Totally empty subdirectories will not be stored in the new snapshot. +If you specify an ``--include`` pattern which will not include anything useful, +the snapshot will not be modfied. It is possible to rewrite only a subset of snapshots by filtering them the same way as for the ``copy`` command, see :ref:`copy-filtering-snapshots`.