mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +00:00
doc: add mention of restore --exclude/--include
There is a lot more detail that could be added here, but it is worth getting things off the ground with at least a mention that it is possible to restore individual files. Updates #396
This commit is contained in:
parent
2fa4060991
commit
ae43c47ca8
@ -663,6 +663,17 @@ backup for a specific host, path or both.
|
||||
enter password for repository:
|
||||
restoring <Snapshot of [/home/art] at 2015-05-08 21:45:17.884408621 +0200 CEST> to /tmp/restore-art
|
||||
|
||||
Use ``--exclude`` and ``--include`` to restrict the restore to a subset of
|
||||
files in the snapshot. For example, to restore a single file:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ restic -r /tmp/backup restore 79766175 --target /tmp/restore-work --include /work/foo
|
||||
enter password for repository:
|
||||
restoring <Snapshot of [/home/user/work] at 2015-05-08 21:40:19.884408621 +0200 CEST> to /tmp/restore-work
|
||||
|
||||
This will restore the file ``foo`` to ``/tmp/restore-work/work/foo``.
|
||||
|
||||
Manage repository keys
|
||||
----------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user