I have more than 120 snapshots for one particular path, all the snapshots have files changed so there is no two identical snapshots but there are identical files between the snapshots ofc, now what I want to do is to compare a certain file between all the snapshots to know in which snapshots the file is different so I can download them all and inspect the content, I know we can compare two snapshots but if I would do that it would take me a massive amount of time so is there a way to get a list of the snapshots in which a file is different?
Something like if in the snapshots 1 to 90 the file checksum is ABCD, from 91 to 100 is DEFG and from 101 to 120 is HIJK then I would get a list with only 3 snapshots.
I’m using Windows. Thank you.
You mean something like this?
opened 02:19PM - 08 Nov 20 UTC
category: user interface
type: feature suggestion
Output of `restic version`
--------------------------
restic 0.11.0 (v0.11.0… -42-g9e4e0077) compiled with go1.14.7 on linux/amd64
What should restic do differently? Which functionality do you think we should add?
----------------------------------------------------------------------------------
Add a possibility to show some kind of "history" for one or more file(s). An option would be to add an option to `restic find`.
E.g. `restic find --history --long /data/my_file.txt` might produce something like:
```
Found matching entries in snapshot 3e8ff4a9 from 2020-02-04 03:53:08 (+3 subsequent snaphots)
-rw-r--r-- 1000 1000 6 2020-02-04 03:41:48 /data/my_file.txt
Found matching entries in snapshot b41a0aa2 from 2020-02-04 04:10:27
-rw-r--r-- 1000 1000 6 2020-02-04 03:58:10 /data/my_file.txt
Found matching entries in snapshot c3d8da1e from 2020-02-04 04:17:20 (+1 subsequent snaphots)
-rw-r--r-- 1000 1000 6 2020-02-04 04:15:23 /data/my_file.txt
```
Of course, if using `find`, we should also sort/group the snapshots by paths and date. Just realized that this actually is not the case.
What are you trying to do? What problem would this solve?
---------------------------------------------------------
If a file is backuped by a automated procedure, it will be usually be contained in many snapshots.
Now imagine you need this file and just realize it has been "damaged" (e.g. by a user trying to work on it), You may want to get the last "undamaged" version from your backup.
However, restic so far can only produce a list of snapshots where the file is contained and you have to manually go through all of those to find the version. This may even apply if the file was just changed a few times. So it might be handy to have restic dermine how many different "versions" of this file really exist in the backup and which snapshots can be used to access those.
Did restic help you today? Did it make you happy in any way?
------------------------------------------------------------
Backing up shared directories (where many users can write files) with restic makes me feel much more relaxed. Having many users with write access increases the risk of errors by mistake a lot. I'm happy to have a very good backup utility with restic here which simply works!
1 Like
Yes, that’s exactly what I was looking for, hopefully someone can work on this. Thanks you.