Skip to content

Commit

Permalink
doc: add mention of restore --exclude/--include
Browse files Browse the repository at this point in the history
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 restic#396
  • Loading branch information
prattmic committed Aug 28, 2017
1 parent 2fa4060 commit ae43c47
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------

Expand Down

0 comments on commit ae43c47

Please sign in to comment.