Return helpful error if subfolder syntax fails on Windows (#21813)

This commit is contained in:
Michael Eischer
2026-05-20 22:55:01 +02:00
committed by GitHub
parent dd4f1f06a1
commit f000da3b35
9 changed files with 33 additions and 11 deletions
+2 -2
View File
@@ -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
View File
@@ -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