Comparing Snapshots with Restic

Restic allows users to use a diff command to show the difference between two snapshots, displaying a list of details of the difference between the two snapshots being compared.

This is helpful, to locate a file or folder that you’re uncertain when it was last updated.

As with any interaction with Restic, you must first initialize the repo to perform actions within restic, to do so follow this guide.

The command to show the difference between two snapshots is as follows –

restic diff $SnapshotID1 $SnapshotID2

In the above example, the only change was the addition of the file /home/test, as displayed above.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.