From ae43c47ca83daa41cd6a24a2dfce79f05e50d061 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Sun, 27 Aug 2017 18:36:00 -0700 Subject: [PATCH] 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 --- doc/manual.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/manual.rst b/doc/manual.rst index 9630240b2..079457f13 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -663,6 +663,17 @@ backup for a specific host, path or both. enter password for repository: restoring 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 to /tmp/restore-work + +This will restore the file ``foo`` to ``/tmp/restore-work/work/foo``. + Manage repository keys ----------------------