mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 10:58:55 +00:00
tweak snapshot:subfolder docs
This commit is contained in:
parent
8154f6a77a
commit
55b440b520
@ -6,10 +6,10 @@ did not allow comparing only a specific subfolder or only restoring that folder
|
|||||||
directories included in `subfolder`).
|
directories included in `subfolder`).
|
||||||
|
|
||||||
The commands `diff`, `dump`, `ls`, `restore` now support the
|
The commands `diff`, `dump`, `ls`, `restore` now support the
|
||||||
`<snapshot>:<subfolder>` syntax, where `snapshot` is the ID of a snapshot or
|
`<snapshot>:<subfolder>` syntax, where `snapshot` is the ID of a snapshot (or
|
||||||
`latest` and `subfolder` is a path within the snapshot. The commands will then
|
the string `latest`) and `subfolder` is a path within the snapshot. The
|
||||||
only work with the specified path of the snapshot. The `subfolder` must be a
|
commands will then only work with the specified path of the snapshot. The
|
||||||
path to a folder as returned by `ls`.
|
`subfolder` must be a path to a folder as returned by `ls`.
|
||||||
|
|
||||||
`restic restore -t target latest:/some/path`
|
`restic restore -t target latest:/some/path`
|
||||||
`restic diff 12345678:/some/path 90abcef:/some/path`
|
`restic diff 12345678:/some/path 90abcef:/some/path`
|
||||||
|
@ -452,7 +452,7 @@ and displays a small statistic, just pass the command two snapshot IDs:
|
|||||||
Removed: 16.402 MiB
|
Removed: 16.402 MiB
|
||||||
|
|
||||||
To only compare files in specific subfolders, you can use the ``<snapshot>:<subfolder>``
|
To only compare files in specific subfolders, you can use the ``<snapshot>:<subfolder>``
|
||||||
syntax, where ``snapshot`` is the ID of a snapshot or ``latest`` and ``subfolder``
|
syntax, where ``snapshot`` is the ID of a snapshot (or the string ``latest``) and ``subfolder``
|
||||||
is a path within the snapshot. For example, to only compare files in the ``/restic``
|
is a path within the snapshot. For example, to only compare files in the ``/restic``
|
||||||
folder, you could use the following command:
|
folder, you could use the following command:
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ files in the snapshot. For example, to restore a single file:
|
|||||||
This will restore the file ``foo`` to ``/tmp/restore-work/work/foo``.
|
This will restore the file ``foo`` to ``/tmp/restore-work/work/foo``.
|
||||||
|
|
||||||
To only restore a specific subfolder, you can use the ``<snapshot>:<subfolder>``
|
To only restore a specific subfolder, you can use the ``<snapshot>:<subfolder>``
|
||||||
syntax, where ``snapshot`` is the ID of a snapshot or ``latest`` and ``subfolder``
|
syntax, where ``snapshot`` is the ID of a snapshot (or the string ``latest``)
|
||||||
is a path within the snapshot.
|
and ``subfolder`` is a path within the snapshot.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user