-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dump requires absolute path from within the repo #4443
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,17 @@ size of the files and directories in ``~/work`` on the local file system. It | |
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about a plain There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I personally think documentation should contain a path like |
||
within the snapshot is ``/home/user/work``. | ||
|
||
If we attach a relative path ``work``, the path within the snaphot is ``/work``. | ||
|
||
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. | ||
|
||
If you don't pass the ``--verbose`` option, restic will print less data. You'll | ||
still get a nice live status display. Be aware that the live status shows the | ||
processed files and not the transferred data. Transferred volume might be lower | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to move this to it's own subsection, for example
Paths in a snapshot
and then show a backup using a relative and an absolute path each followed with the corresponding output ofsnapshots
andls
as illustration.The jump from
~/work
to/home/user/work
may also not be obvious to every user, especially those that are unfamiliar with unix shells.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create such a subsection, and you are welcome to copy my text, which I then remove from this PR.
Ideally we can work on this branch, Git allows this.
I agree that
~/
could confuse Windows users, but I just wanted to be consistent with the documentation.Shall I replace the 13 cases of
~/' with
/home/user/`in 040_backup alone, or do you want to do that?