Show file history #1238
aawsome
started this conversation in
Show and tell
Replies: 2 comments 7 replies
-
Would be nice, to add this to the docs actually, e.g. here: https://github.com/rustic-rs/docs/tree/main/src/commands/misc As a use case for finding things. Ref.: rustic-rs/docs#83 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't understand what this is doing/showing. If you make a doc on it, can you please provide more detail on how to interpret and use the output? I don't know what +x means, or what differs/remains the same between each result. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to show some functionality which has been introduced in rustic 0.8.0.
Sometimes you know about a file which is present in your repository and you want to know when this exactly given file has been changed. Basically you want to see the history of this file in the snapshots saved in your repository.
To do so, simply use the
--path
option ofrustic find
. This will find the givenpath
in all snapshots. However, by default identical results are shown as(+x)
(like in therustic snapshots
output). So, this gives you exactly the history of that file.Typically, you also know that you can filter out some snapshots by using the path(s) stored in the snapshots, so using a suitable
--filter-paths
will reduce the search by excluding snapshots which cannot contain that file.An example call:
This shows that the given file exists in quite some snapshots - we exactly get the snapshots where the file content changed.
Beta Was this translation helpful? Give feedback.
All reactions