From 1925457b7884afb2fd1d65bb071b4261b7e838bd Mon Sep 17 00:00:00 2001 From: Markus Kramer Date: Sun, 20 Aug 2023 17:20:46 +0200 Subject: [PATCH] Entered feedback from MichaelEischer --- doc/040_backup.rst | 10 +++++----- doc/050_restore.rst | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 12a617665..079f013bf 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -46,13 +46,13 @@ also tells us that only 1.200 GiB was added to the repository. This means that some of the data was duplicate and restic was able to efficiently reduce it. We just attached the absolute path ``~/work`` to the backup, so the path -within the repository is ``/home/user/work``, depending on your user name. +within the snapshot is ``/home/user/work``. -If we attach a relative path ``work``, the path within the repository is ``/work``. +If we attach a relative path ``work``, the path within the snaphot is ``/work``. -For example ``restic backup work`` run from ``/home/user`` crates a snapshot -with a attached path ``/home/user/work`` that contains the path ``/work`` -within the repository. This path-related discrepancy applies to each command +For example ``restic backup work`` run from ``/home/user`` creates a snapshot +with a directory ``/home/user/work`` that contains the path ``/work`` +within the snapshot. This path-related discrepancy applies to each command that tries to access data within a snapshot. You can lookup the paths within a repository using the ``ls latest /`` command. diff --git a/doc/050_restore.rst b/doc/050_restore.rst index d87df4f1d..a838c95d5 100644 --- a/doc/050_restore.rst +++ b/doc/050_restore.rst @@ -156,12 +156,12 @@ e.g.: $ restic -r /srv/restic-repo dump --path /production.sql latest production.sql | mysql -This example assumes you attached an absolute path, which means it coincides with the -path within the repository. +This example assumes you ran a backup using an absolute path, which coincides with the +path within the snaphots. See https://restic.readthedocs.io/en/stable/040_backup.html#backing-up for the difference -between attached path and path within the repository. +between the path used to create the repository and the paths within the snaphots. -If you attached a relative path, the ``dump`` command would look like: +If you ran a backup using the relative path ``work/``, the ``dump`` command would look like: .. code-block:: console @@ -169,7 +169,7 @@ If you attached a relative path, the ``dump`` command would look like: If dump results in the error message ``cannot dump file: path "/home" not found in snapshot`` -first double check you used the path within the repository, using the ``ls latest /`` command, +first double check you used the path within the snaphot, using the ``ls latest /`` command, which for the repository above results in: .. code-block:: console