dump: add --target option

This commit is contained in:
Srigovind Nayak
2024-02-04 14:15:14 +05:30
committed by Michael Eischer
parent 0f09a8870c
commit 175c14b5c9
3 changed files with 37 additions and 6 deletions
+7
View File
@@ -174,3 +174,10 @@ To include the folder content at the root of the archive, you can use the ``<sna
.. code-block:: console
$ restic -r /srv/restic-repo dump latest:/home/other/work / > restore.tar
It is also possible to ``dump`` the contents of a selected snapshot and folder
structure to a file using the ``--target`` flag. The ``dump`` will fail if the
file exists.
.. code-block:: console
$ restic -r /srv/restic-repo dump latest / --target /home/linux.user/output.tar -a tar