1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-21 23:33:03 +00:00

Merge pull request #5094 from MichaelEischer/document-restore-delete-safety

doc: document safety feature for --target / --delete
This commit is contained in:
Michael Eischer 2024-10-27 18:21:47 +01:00 committed by GitHub
commit ca4bd1b8ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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