Repository contains errors: what snapshot/file is affected

Sometimes, after checking my repositories, I get errors like

pack xxxxxxxx: does not exists
pack xxxxxxxx contains 1 errors: …
etc.

Is there a way to find out which files or snapshots are affected.

1 Like

See restic help find, e.g. restic find --pack <somePackIdHere>. This should tell you which snapshots are affected. Example:

$ ./restic -r apa/ find --pack 3b8675c371a5baa7850c5456540e8f87a707be402d6628f9d69f4b37d5f84e9e
repository ba330420 opened successfully, password is correct
Found blob 21c9135a9ac86c788790741c397653878063db253efe6a90e1aed8944c11913b
 ... in file /apa/snapshots/21c9135a9ac86c788790741c397653878063db253efe6a90e1aed8944c11913b
     (tree c5ab8a4ed42dadc3284b78b18d8e90ccbf41113deab69fb7f30852ccb8dc1056)
 ... in snapshot 57e4f3c2 (2021-04-25 20:26:59)
Found blob 7b1fbe8b34337cb2682ec1b0a73337c9884b01600cf2a1b47149864e934dedff
 ... in file /apa/snapshots/7b1fbe8b34337cb2682ec1b0a73337c9884b01600cf2a1b47149864e934dedff
     (tree c5ab8a4ed42dadc3284b78b18d8e90ccbf41113deab69fb7f30852ccb8dc1056)
 ... in snapshot 57e4f3c2 (2021-04-25 20:26:59)
Found blob 8ac5b7bc86ee96bfba854ddcfcb450d5875e820a7d17513e0067b0eb19c8fc49
 ... in file /apa/snapshots/8ac5b7bc86ee96bfba854ddcfcb450d5875e820a7d17513e0067b0eb19c8fc49
     (tree c5ab8a4ed42dadc3284b78b18d8e90ccbf41113deab69fb7f30852ccb8dc1056)
 ... in snapshot 57e4f3c2 (2021-04-25 20:26:59)
Found blob b690a9513e844969a585740f67b69e3b5aa6c37490d9a380fecb7b9eb84387cf
 ... in file /apa/snapshots/b690a9513e844969a585740f67b69e3b5aa6c37490d9a380fecb7b9eb84387cf
     (tree c5ab8a4ed42dadc3284b78b18d8e90ccbf41113deab69fb7f30852ccb8dc1056)
 ... in snapshot 57e4f3c2 (2021-04-25 20:26:59)
Found blob e1f007b569315bd6ee71c5bf17023b24cf472b0a17c9e6e932ffface2ad77605
 ... in file /apa/snapshots/e1f007b569315bd6ee71c5bf17023b24cf472b0a17c9e6e932ffface2ad77605
     (tree c5ab8a4ed42dadc3284b78b18d8e90ccbf41113deab69fb7f30852ccb8dc1056)
 ... in snapshot 57e4f3c2 (2021-04-25 20:26:59)

Thank you very much for your answer. I’ll try it out.