rewrite: updated issue file and documentation

This commit is contained in:
Winfried Plappert 2025-02-20 13:09:34 +00:00
parent 2d0d340ade
commit fea4cf949c
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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`.