FYI, I’ve just added a
verify-randomly command in
restic-runner: https://github.com/alphapapa/restic-runner#verify-randomly-n For former Obnam users, this will be familiar. For example:
# Restore and compare 5 random files from latest snapshot in the # local-disk repo in the me/music backup set with verbose output. $ restic-runner -v --repo local-disk --set me/music --compare verify-randomly 5 LOG (2018-11-17 23:12:06): REPO:local-disk SET:me/music LOG (2018-11-17 23:12:09): VERIFYING 5 files from snapshot e4d70c15... repository 06d38433 opened successfully, password is correct restoring <Snapshot e4d70c15 of [/home/me/Music] at 2018-11-17 05:09:03.317062072 -0600 CST by @localhost> to /tmp/tmp.2Ad6SF3MbA LOG (2018-11-17 23:12:13): COMPARING with live versions... VERBOSE: Comparing file: /home/me/Music/a.mp3 VERBOSE: Comparing file: /home/me/Music/b.mp3 VERBOSE: Comparing file: /home/me/Music/c.mp3 VERBOSE: Comparing file: /home/me/Music/d.mp3 VERBOSE: Comparing file: /home/me/Music/e.mp3 LOG (2018-11-17 23:12:14): verify-randomly FINISHED. Duration: 8s
I hope someday Restic has this functionality built-in, but until then, this works well.