mirror of https://github.com/restic/restic.git
rewrite: updated issue file and documentation
This commit is contained in:
parent
2d0d340ade
commit
fea4cf949c
|
@ -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
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue