Recover deleted files across snapshots

Is there an easy way to restore all files from a specific folder across snapshots?
Thanks in advance!

I wrote a shell script to handle this

Hi @idan and welcome to the Restic community! :slight_smile:

Tip: Restic also has the ability to output json output. This is easier to parse and gives you more information as well.

An example: I am removing a .txt file

restic diff --json 183d6f85 0aa78957
{"message_type":"change","path":"/data/blu.txt","modifier":"-"}
{"message_type":"statistics","source_snapshot":"183d6f85","target_snapshot":"0aa78957","changed_files":0,"added":{"files":0,"dirs":0,"others":0,"data_blobs":0,"tree_blobs":2,"bytes":1525},"removed":{"files":1,"dirs":0,"others":0,"data_blobs":1,"tree_blobs":2,"bytes":1943}}

This json can now be filtered with jq for example.

This way you

Hope this helps :slight_smile: