forked from TrueCloudLab/restic
doc: document safety feature for --target / --delete
This commit is contained in:
parent
62222edc4a
commit
d8e0384940
1 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,10 @@ options will be deleted. For example, the command
|
||||||
``restic -r /srv/restic-repo restore 79766175:/work --target /tmp/restore-work --include /foo --delete``
|
``restic -r /srv/restic-repo restore 79766175:/work --target /tmp/restore-work --include /foo --delete``
|
||||||
would only delete files within ``/tmp/restore-work/foo``.
|
would only delete files within ``/tmp/restore-work/foo``.
|
||||||
|
|
||||||
|
When using ``--target / --delete`` then the ``restore`` command only works if either an ``--include``
|
||||||
|
or ``--exclude`` option is also specified. This ensures that one cannot accidentaly delete
|
||||||
|
the whole system.
|
||||||
|
|
||||||
Dry run
|
Dry run
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue