mirror of
https://github.com/restic/restic.git
synced 2026-10-05 10:20:30 +00:00
Return helpful error if subfolder syntax fails on Windows (#21813)
This commit is contained in:
+2
-2
@@ -609,8 +609,8 @@ and displays a small statistic, just pass the command two snapshot IDs:
|
||||
|
||||
To only compare files in specific subfolders, you can use the ``<snapshot>:<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``
|
||||
folder, you could use the following command:
|
||||
is a path within the snapshot tree as shown by ``restic ls``. For example, to only compare files in
|
||||
the ``/restic`` folder, you could use the following command:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
|
||||
+4
-4
@@ -54,10 +54,10 @@ This will restore the file to ``/tmp/restore/home/user/work/foo``.
|
||||
|
||||
To only restore a specific subfolder, you can use the ``<snapshot>:<subfolder>``
|
||||
syntax, where ``snapshot`` is the ID of a snapshot (or the string ``latest``)
|
||||
and ``subfolder`` is a path within the snapshot. Note that the subfolder syntax
|
||||
also affects options like ``--include`` and ``--exclude``, such that their
|
||||
arguments should be specified relative to ``subfolder`` (e.g. ``/foo`` instead
|
||||
of ``/home/user/work/foo``).
|
||||
and ``subfolder`` is a path within the snapshot tree as shown by ``restic ls``.
|
||||
Note that the subfolder syntax also affects options like ``--include`` and
|
||||
``--exclude``, such that their arguments should be specified relative to
|
||||
``subfolder`` (e.g. ``/foo`` instead of ``/home/user/work/foo``).
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
|
||||
Reference in New Issue
Block a user