Fix damaged repo

A backup was interrupted and left my repo in a damaged state. When I try to list snapshots, I get the following output:

restic ... snapshots -c
repository 2f0992a2 opened successfully, password is correct
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 498.812741ms: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 1.021521273s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 954.014797ms: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 1.65238028s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 3.060367219s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 4.81477323s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 3.235347789s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 9.336100434s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 17.745175033s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 22.129445615s: trying to cache truncated file <snapshot/d7efe02e72>
could not load snapshot d7efe02e: load <snapshot/d7efe02e72>: invalid data returned
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 529.608058ms: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 833.858424ms: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 946.027483ms: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 885.911437ms: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 2.68443448s: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 4.287940257s: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 5.954706836s: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 7.015016023s: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 11.87405628s: trying to cache truncated file <snapshot/eed517be07>
Load(<snapshot/eed517be07>, 0, 0) returned error, retrying after 14.459632823s: trying to cache truncated file <snapshot/eed517be07>
could not load snapshot eed517be: load <snapshot/eed517be07>: invalid data returned
ID        Date                 Host        Tags  
----------------------------------------------------------------------
89b4bd33  2017-09-04 20:39:51  reeb.local  
e2bd86ed  2017-09-04 21:02:56  reeb.local  
...
47a01f64  2018-07-02 10:49:45  reeb.local  
28aab6e1  2018-07-02 23:09:00  reeb.local  
----------------------------------------------------------------------
422 snapshots

This would be Ok, except that backup doesn’t actually work:

restic ... backup
repository 2f0992a2 opened successfully, password is correct
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 440.539846ms: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 753.779102ms: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 1.366410669s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 1.062945682s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 2.681870661s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 2.17974814s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 5.505464165s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 8.581298535s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 17.012798234s: trying to cache truncated file <snapshot/d7efe02e72>
Load(<snapshot/d7efe02e72>, 0, 0) returned error, retrying after 11.171153083s: trying to cache truncated file <snapshot/d7efe02e72>
Error loading snapshot d7efe02e: load <snapshot/d7efe02e72>: invalid data returned
github.com/restic/restic/internal/restic.FindLatestSnapshot.func1
	src/github.com/restic/restic/internal/restic/snapshot_find.go:39
github.com/restic/restic/internal/repository.(*Repository).List.func1
	src/github.com/restic/restic/internal/repository/repository.go:585
github.com/restic/restic/internal/backend.(*RetryBackend).List.func1.1
	src/github.com/restic/restic/internal/backend/backend_retry.go:133
github.com/restic/restic/internal/backend/sftp.(*SFTP).List
	src/github.com/restic/restic/internal/backend/sftp/sftp.go:462
github.com/restic/restic/internal/limiter.(*rateLimitedBackend).List
	<autogenerated>:1
github.com/restic/restic/internal/backend.(*RetryBackend).List.func1
	src/github.com/restic/restic/internal/backend/backend_retry.go:127
github.com/restic/restic/vendor/github.com/cenkalti/backoff.RetryNotify
	src/github.com/restic/restic/vendor/github.com/cenkalti/backoff/retry.go:37
github.com/restic/restic/internal/backend.(*RetryBackend).retry
	src/github.com/restic/restic/internal/backend/backend_retry.go:36
github.com/restic/restic/internal/backend.(*RetryBackend).List
	src/github.com/restic/restic/internal/backend/backend_retry.go:126
github.com/restic/restic/internal/cache.(*Backend).List
	<autogenerated>:1
github.com/restic/restic/internal/repository.(*Repository).List
	src/github.com/restic/restic/internal/repository/repository.go:579
github.com/restic/restic/internal/restic.FindLatestSnapshot
	src/github.com/restic/restic/internal/restic/snapshot_find.go:36
main.findParentSnapshot
	src/github.com/restic/restic/cmd/restic/cmd_backup.go:317
main.runBackup
	src/github.com/restic/restic/cmd/restic/cmd_backup.go:395
main.glob..func2
	src/github.com/restic/restic/cmd/restic/cmd_backup.go:54
github.com/restic/restic/vendor/github.com/spf13/cobra.(*Command).execute
	src/github.com/restic/restic/vendor/github.com/spf13/cobra/command.go:756
github.com/restic/restic/vendor/github.com/spf13/cobra.(*Command).ExecuteC
	src/github.com/restic/restic/vendor/github.com/spf13/cobra/command.go:846
github.com/restic/restic/vendor/github.com/spf13/cobra.(*Command).Execute
	src/github.com/restic/restic/vendor/github.com/spf13/cobra/command.go:794
main.main
	src/github.com/restic/restic/cmd/restic/main.go:86
runtime.main
	/usr/local/Cellar/go/1.10.3/libexec/src/runtime/proc.go:198
runtime.goexit
	/usr/local/Cellar/go/1.10.3/libexec/src/runtime/asm_amd64.s:2361

Is there a way to fix the repo, so I can continue backing up into it, without having to delete it and restart from scratch?

I’m facing this same issue…

$ restic ... check
enter password for repository: 
password is correct
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
Load(<snapshot/0000295a69>, 0, 0) returned error, retrying after 281.575541ms: open /home/restic/snapshots/0000295a693d6e54e6f4384aa4a221b13d9af9361143e22622cd4ed7df60dc72: no such file or directory
Load(<snapshot/0000a1c28d>, 0, 0) returned error, retrying after 656.703327ms: open /home/restic/snapshots/0000a1c28d32defe21d232cd5a568f1d9e19d020ea2cc4fd01ab48064275e86d: no such file or directory
Load(<snapshot/0001efe242>, 0, 0) returned error, retrying after 625.577291ms: open /home/restic/snapshots/0001efe242524a1af9912b7497d661d9ec83482afc03f1bff02439a43e2b3777: no such file or directory
Load(<snapshot/00024189c2>, 0, 0) returned error, retrying after 740.595536ms: open /home/restic/snapshots/00024189c26a613653a4b4128272213342d4cf13b5be44184ef9236d642b93b2: no such file or directory
Load(<snapshot/0005c45908>, 0, 0) returned error, retrying after 676.617556ms: open /home/restic/snapshots/0005c45908d8f2a1201ace8ffba8f869bf70298e8af4c24e73c6e2fab90c64e7: no such file or directory
Load(<snapshot/000611c7f8>, 0, 0) returned error, retrying after 500.557587ms: open /home/restic/snapshots/000611c7f8a9a16ba28b6baf915a4b83c87cf753d219dfabfe09668f7d55a6fa: no such file or directory
.
.
.
---snip---

This happens for check, snapshots , restore, etc…

Is there a way to fix the repo, so I can continue backing up into it, without having to delete it and restart from scratch?

Unfortunately, I don’t remember how I fixed it. I think I deleted the offending files, but whether I removed them from cache or from the repo itself, I don’t remember.

This indicates that the snapshot file exists but apparently was not fully written. Delete the file snapshot/d7efe02e72... from your repository to correct this issue.

@cdhowie Thanks. I fixed this problem not long after I posted the original message (a year and a half ago). Do you have suggestions how @Cardosaum could fix their problem?

What backend are you using? It looks like it is returning a file list that contains files that don’t actually exist.

I’m using as a backend local and sftp to backup my files in an external hard drive and local server, respectively.

paying more attention, I realized that my problem is not the same one mentioned by @mrzv at the beginning of the thread. I apologize for the mistake.

Maybe it would be better to start a new thread?

Can you look at /home/restic/snapshots/0000295a693d6e54e6f4384aa4a221b13d9af9361143e22622cd4ed7df60dc72 and see if it exists? Is it a dangling symlink?

Inside snapshots directory:

$ ls -lah data/00/0000295a693d6e54e6f4384aa4a221b13d9af9361143e22622cd4ed7df60dc72
-rw------- 1 restic restic 4.1M Jan 24 18:12 data/00/0000295a693d6e54e6f4384aa4a221b13d9af9361143e22622cd4ed7df60dc72

and a overview of snapshots directory:

$ ls -lhR
.:
total 104K
drwx------ 3 restic restic 4.0K Jan 24 18:11 data
-rw------- 1 restic restic 5.0K Jan 24 17:11 08f54b078419fcb61205f42a7fda250de5ce6790f7a51de388373ec33774a73d
-rw------- 1 restic restic  279 Jan 23 17:59 0eca01f47c787d1071ae055688aff519f51821a0e48e9d1b7134307c8918deeb
-rw------- 1 restic restic  396 Jan 25 17:12 2e88795bcea5d24609ac93c69ccafd040e9ff7f6d14d66270f3e1627d8eede3b
-rw------- 1 restic restic  310 Jan 25 01:38 414e273f4bbf2158c22300e6bcc4a6707f08e78bdc16a5bdde60ac8d76b499ab
-rw------- 1 restic restic  355 Jan 23 19:58 4a5c9eeeb2335f1737593066ab4d2dc8c2d9c449e218effc35e947e53bee62fc
-rw------- 1 restic restic  318 Jan 24 21:33 4bb93be9149faf9a386358f90e09aba27bfba857cb1282edeb494c9eb83fc7c9
-rw------- 1 restic restic 5.0K Jan 24 15:43 4e5913035573f202e28cce6ec13d3fa124555d2cd7eb32aa5d220eab22773fe5
-rw------- 1 restic restic  271 Jan 23 17:52 50952cc15e4e57e559856aaefe8801adca706d01cdc27786b12237bbe9b4f723
-rw------- 1 restic restic  290 Jan 23 21:38 5b284675bb59997bb6a77e7aef33688fe77180005ff2b1e8d2a090f1b8e6415f
-rw------- 1 restic restic  268 Jan 25 21:03 5ef55020aeed3584e438086f710c646899bcbf0a00572930ad328297028bb934
-rw------- 1 restic restic  318 Jan 23 18:00 744fed6e1a05bd59f8a920b8975b3c91c02240ea8046580a9a8a4ccc06ed3420
-rw------- 1 restic restic 4.9K Jan 24 15:31 8d1803fc549acacecc87dc6e80cd8b9329a4a346323b7db3ad6752d5f62d31ae
-rw------- 1 restic restic  313 Jan 25 16:30 9a29e48a55b595d4e5508590d7a2e6f0f888130bb9f536f15bd3d4734c32ab86
-rw------- 1 restic restic  378 Jan 25 12:16 9f55dc8808c8ffc7ef2c829c9449471792f0d49ea80cb3bc18191a02335ba222
-rw------- 1 restic restic  351 Jan 25 21:25 b2a31ede89dbe95c55c065e223862c83eaf8f6ab689cd13e9666e1af8d888ab7
-rw------- 1 restic restic  355 Jan 23 19:48 b301ce3490b2ec9aaf656c86a4df4a881dd228c014cfc9b4b3076ef0c439aa65
-rw------- 1 restic restic  389 Jan 25 17:10 d6a814b7a215624162868e22e9a522bc51d7eccb9d3f279c29e98124b88a46a2
-rw------- 1 restic restic  376 Jan 25 18:24 e2dbbd83ce584754be10335b105233af892858934c5a1b419fd99734e4e612ab
-rw------- 1 restic restic  285 Jan 23 21:49 e83ddc50598e07e1442a01affa2ed14459cfe99b1681e8685b1646a55d784f09
-rw------- 1 restic restic  293 Jan 25 18:15 f7cbdf87a2a9d441d8185e8fbf6cda22ac55028121eb1f21003f7f7255c2ceab
-rw------- 1 restic restic 5.0K Jan 25 08:54 fcd20120ca31fbb94b91646d7142a6797b818dedeb008528a403e23b3ffb7f96

./data:
total 20K
drwx------ 2 restic restic 20K Jan 24 18:12 00

./data/00:
total 600M
-rw------- 1 restic restic 4.1M Jan 24 18:12 0000295a693d6e54e6f4384aa4a221b13d9af9361143e22622cd4ed7df60dc72
-rw------- 1 restic restic 6.4M Jan 24 18:12 0000a1c28d32defe21d232cd5a568f1d9e19d020ea2cc4fd01ab48064275e86d
-rw------- 1 restic restic 5.5M Jan 24 18:11 0001efe242524a1af9912b7497d661d9ec83482afc03f1bff02439a43e2b3777
-rw------- 1 restic restic 5.2M Jan 24 18:11 00024189c26a613653a4b4128272213342d4cf13b5be44184ef9236d642b93b2
-rw------- 1 restic restic 4.2M Jan 24 18:11 0005c45908d8f2a1201ace8ffba8f869bf70298e8af4c24e73c6e2fab90c64e7
-rw------- 1 restic restic 5.3M Jan 24 18:12 0005e94f450fc97fc7b2c779251293ea37bc49f6c8ebdbd7a5cb8f9584a09c3f
-rw------- 1 restic restic 5.5M Jan 24 18:11 000611c7f8a9a16ba28b6baf915a4b83c87cf753d219dfabfe09668f7d55a6fa
-rw------- 1 restic restic 4.7M Jan 24 18:11 000bec748c0d2aa1589d415f3141b19022d274e9aadc1fcf4d1f5d8dad2962bc
-rw------- 1 restic restic 5.1M Jan 24 18:11 000efc838d96e6f91ca6a413e5839dd222f4a257299a6eeec087179b1c044294
-rw------- 1 restic restic 4.1M Jan 24 18:11 0010727bbe761b428c2e116ccb9c9b83f9dad4bb602cf59845df76b0b0a00676
-rw------- 1 restic restic 4.7M Jan 24 18:12 0013fe71707ee931aa04df9614a61b3c688346fb39a4845077733602575b3c53
-rw------- 1 restic restic 4.5M Jan 24 18:11 0015728ca8973397896a13991f6583a800e20f35041870739f7093f25b284953
-rw------- 1 restic restic 5.4M Jan 24 18:11 001600d4aa8f8247d1308fac25793fd3e3a9515962a7abe2dc78098991f60ff1
-rw------- 1 restic restic 6.1M Jan 24 18:11 0017c88b25da6c2e32a8a83fc82fb358709fb4c095de8d7ec1719560998b83b0
-rw------- 1 restic restic 4.3M Jan 24 18:12 001db89f112d90188f9624e307a0c8352bf1283ff0b7c18a87831471d1af162e
-rw------- 1 restic restic 5.0M Jan 24 18:12 001e4abafca8ccad1524f6a320327371c6aa6f741517fc35cd541d8b38f8dbd4
-rw------- 1 restic restic 6.4M Jan 24 18:11 001f681c0bf85ad5a97c28e297472410128dc3991361957fdfcac9a37c34c6f7
-rw------- 1 restic restic 4.6M Jan 24 18:12 002be2908bf000a3b25ce8e83ff5fc729488c8516b54ddbc932030f565fbedf4
-rw------- 1 restic restic 4.1M Jan 24 18:12 0031cfd68e4c7cd2a5312e7b084db06c522162f5081062c9ba575d9a105d969e
-rw------- 1 restic restic 4.1M Jan 24 18:11 003c2fb2ec2e4b6e787a72882a0bda5144f00605e3f7d24b65082d45dbd8c01d
-rw------- 1 restic restic 5.1M Jan 24 18:12 003ee1d77279b4fc2b58b1d9cd64f835b9ca3db10afd2a389eb726cb26cd3806
-rw------- 1 restic restic 5.0M Jan 24 18:11 0041681685f329da169a1838ebed38d242e532938ff5c0aa047e2acf4b9eedf0
-rw------- 1 restic restic 4.2M Jan 24 18:12 0042e5eb227dc808154d84463826cdd7602f3bcc2818e31a490bf883baaa0f84
-rw------- 1 restic restic 4.5M Jan 24 18:12 0043a1745c994251536d7e855c7c72450dcad4201a01a97747ac91d2f62a41a4
-rw------- 1 restic restic 4.4M Jan 24 18:11 004529609ede217c9b7628b1bd001a7eb87e9b159fab2264cafbad086cd65b9c
-rw------- 1 restic restic 6.9M Jan 24 18:12 0047533542c3dc0aea7d3f534502f8fd2af6afa14b52401fd5d9829dad86b8e5
-rw------- 1 restic restic 5.0M Jan 24 18:12 00487640f052ef69099b2c4bf18ef43a44688cffb41633593f9def4b5958fe75
-rw------- 1 restic restic 4.1M Jan 24 18:11 0048fe4778e39c2838383685c7b504569cc85227b1421fe589e7a17dbd82e876
-rw------- 1 restic restic 4.9M Jan 24 18:11 004919fadb69bf194a30d1a93855c35b9b4e5c0bf6ec38e6f2a3b88893b5b423
-rw------- 1 restic restic 4.2M Jan 24 18:11 004b3fc5b9c6332ad44e6fa55efc9b09cff42b9d5d9b13798b8817563a245d41
-rw------- 1 restic restic 4.5M Jan 24 18:12 004f0e5a7ea7046610394b5a03452e4df0434c90363eacaab8e082055285e909
-rw------- 1 restic restic 4.4M Jan 24 18:11 0053feeab11d60ac26d020b7d38f42573670de7a2b10b76d14792d688a0f7ccf
-rw------- 1 restic restic 4.4M Jan 24 18:11 00555e7b549d7e8365e50c523a380e9901ba6730f592bb6e370bd980c86c2eb8
-rw------- 1 restic restic 4.4M Jan 24 18:12 00568c27aadbb5ed47f120db4a20497a4874b13c78937b5443a033f7eba5bc3a
-rw------- 1 restic restic 4.2M Jan 24 18:11 005847d80bf58edf4408b89adad41b48f9c0aaea69a1215dfaa8b7880287b397
-rw------- 1 restic restic 4.1M Jan 24 18:11 0058a19b965bb6b5973b5c10d4217a0568851b456360d089fd607c618b312364
-rw------- 1 restic restic 4.2M Jan 24 18:12 005998a094b6bba53671c89c4f4bcafa76f84335ca9b2447af3d5fcb4724e5dd
-rw------- 1 restic restic 4.5M Jan 24 18:11 005a8d69f3bece34faa131cae9096e0947d99c1017510759a1d18479eebb8564
-rw------- 1 restic restic 4.5M Jan 24 18:11 005b4c104133ddcbcb2ef2bba9898ab06d5508c0066feb765e5547875bffbbca
-rw------- 1 restic restic 4.6M Jan 24 18:12 005c7dd451ff613d301f998cb17717ce155d5cc7cf0b4467f835a17e79c80f6d
-rw------- 1 restic restic 6.8M Jan 24 18:12 005cd2d091459c107272171a1470100e249370fcd1149aa8a81385e5dfd3282e
-rw------- 1 restic restic 5.4M Jan 24 18:12 0060247df04ce1781739d8f87941011cf3a7f1f13aa2798c51a2bbad67469eef
-rw------- 1 restic restic 4.1M Jan 24 18:11 0060fe33b4938ce2cfa3fd4d7180a68b9fc00ef8c8d30cf04a2f27a4ea527864
-rw------- 1 restic restic 4.5M Jan 24 18:11 00619e04765bb33dd6bd3b4f1c91d352b573721f81c0d14e39757afa4ab7c0d7
-rw------- 1 restic restic 5.5M Jan 24 18:11 0064c40692c17a85dbeb932e60a0562a62718cb8defda8e5026cd3eb3304e918
-rw------- 1 restic restic 4.4M Jan 24 18:11 0064d6c5c729f76b236e6c059f88106926211bd27b30828f1d16b2b4f7f5bd17
-rw------- 1 restic restic 5.0M Jan 24 18:11 006672a2b67a7dd31e2df3660376dbb4aca462b9a4f7b8cabf596c82aa1fc09f
-rw------- 1 restic restic 4.5M Jan 24 18:11 006b4086e22f57667b64c054ca3d4beafb574998f5be603b89395dd9de975e50
-rw------- 1 restic restic 4.6M Jan 24 18:11 006b876556508b4368f4a32cac809528b31fd7c37a6beb4b67abcd2ca8e5329c
-rw------- 1 restic restic 4.5M Jan 24 18:12 006c43af540425533a119010197cf240f69c86841a20d1bb4d75d712f9ecbeaf
-rw------- 1 restic restic 4.5M Jan 24 18:11 006ed736cfd6e896d5b721140de00d3b5358f3f54e1fa49c896e50731e9f9816
-rw------- 1 restic restic 4.5M Jan 24 18:12 007157d99d1d10305691d0aa67436387637fe000d499593ee5114d9fc16be68f
-rw------- 1 restic restic 4.7M Jan 24 18:11 007351c3ba78276dec50a6224a56a7d0aaf721e1f058146cf8a3ee0439cbe1c1
-rw------- 1 restic restic 4.4M Jan 24 18:11 0076b913816d2c5b4af88707371a8f20eb77e8e5a587c1bb0e9e12e569d0e8a6
-rw------- 1 restic restic 4.2M Jan 24 18:12 00788c5ad244381df257ab398f736a6b4313f1142ad367f5a44dff931e3202c5
-rw------- 1 restic restic 5.5M Jan 24 18:11 0079867d5035bfbf960d4b24ba45b619ab606fdca94d6840d3a4f2b684f75377
-rw------- 1 restic restic 4.8M Jan 24 18:12 007d16b86ea8438a44a4f08d7a712279354b0307d5a91e6c1650208f5d42528a
-rw------- 1 restic restic 4.3M Jan 24 18:12 007f0f0dc628a8d0885bad798e3de7b77549e03afcdebbd1eac35c908a91f0ab
-rw------- 1 restic restic 6.6M Jan 24 18:11 007f548c79dcb28726a7c51b7a2a2cf9ab73a50b68eb23eef3ed904c13091425
-rw------- 1 restic restic 4.2M Jan 24 18:11 0080b28b83094620192514f73d1f24d85293e7e6bddcefc071b5ddb755528ca5
-rw------- 1 restic restic 4.8M Jan 24 18:11 0088ccaa09f7ee190c7d6974c59f26f9351792e2d632ed0ef02c23d24f72a96c
-rw------- 1 restic restic 4.4M Jan 24 18:11 00897392fc45085f6eb04f5e8cc7a6579b8e0473468cd3a3a215bd99b59b063c
-rw------- 1 restic restic 4.5M Jan 24 18:12 008a182dfe01b5aa1bb26266c54ee112aed8afaef7b833671e7f5bca2535059a
-rw------- 1 restic restic 4.6M Jan 24 18:11 0090f8634847b8fce72c84198b1abab042ca9119278927c21de692c7ccbfe210
-rw------- 1 restic restic 4.3M Jan 24 18:11 0094176d3bf18e002d35ee9275c2e59581ec11b3e4e2ed28b1c1a9fc075ab21b
-rw------- 1 restic restic 5.4M Jan 24 18:11 0099b62c07cbb5a4187f793f83edd14c1d320739f7a3596348baab51663a321c
-rw------- 1 restic restic    0 Jan 24 18:12 009b0a9593ca407a9c27db804d22e51285990344bbf2328f24a0be5890db4c39
-rw------- 1 restic restic 8.7M Jan 24 18:11 009be3359103429f5ffe4d529ce5fe3964a6a09092512eb00aa3008f73e69227
-rw------- 1 restic restic 4.1M Jan 24 18:11 009c64215c520ffc3c69401581dc33421d37798bc6801c8a8b8d2fa43258c385
-rw------- 1 restic restic 4.5M Jan 24 18:11 00a072e2aadf5cb50ffd3374b3d0aa7436d3d99b8c683053724b142adeea1f52
-rw------- 1 restic restic 4.5M Jan 24 18:11 00a13ef4ea31800a3d00ab4f5088419ee185a619945a33381ed2068e7eab1ad9
-rw------- 1 restic restic 4.1M Jan 24 18:11 00a1ad8570dbc4660aeee533fd1ed11b64778d49287b86d3debd0870517ba47b
-rw------- 1 restic restic 4.7M Jan 24 18:11 00a6390dc395eb62453ec8bad8184dedaa5cfaa48a487a33088355dd5eabee67
-rw------- 1 restic restic 4.3M Jan 24 18:12 00a8ae6ea262483ac1e1caa3b58d0d361ac51a0c095a1f06d3e315414321350e
-rw------- 1 restic restic 5.6M Jan 24 18:11 00aa3165335a692ba77e210e56d7e966a5e434589c679bdb6d9e88f66763107f
-rw------- 1 restic restic 4.5M Jan 24 18:12 00accf9497cd5cb1f505ea38af1113f4116b6b9c732f91895297f54d0cc45466
-rw------- 1 restic restic 4.5M Jan 24 18:11 00afa23bfb42da05fb847615ede47a73c7389fcfbef166f3f49987dad0d0758d
-rw------- 1 restic restic 4.7M Jan 24 18:11 00b09f645c649f5cad6d725919048cdf62becb54ce04ab8831dd35353583d335
-rw------- 1 restic restic 4.7M Jan 24 18:11 00b7e6ff0e4c975e1086e22a8ac87fa3bd41c461217a608c5c2dc504f6bf646a
-rw------- 1 restic restic 4.6M Jan 24 18:12 00b8a34509762932620e55e42303295e5339b2361e94e58548bc8c8cfa889302
-rw------- 1 restic restic 5.4M Jan 24 18:11 00ba33f4c75b31ee9a16fe8f5779da71f9b498aa1981dc4e5c73505e4b647095
-rw------- 1 restic restic 4.2M Jan 24 18:11 00bcff7374695e3b4d899be8e7491d004bd3fe47c5d5b18b4564a522aea48cf4
-rw------- 1 restic restic 4.8M Jan 24 18:11 00bef7af594dd483e0997e8ac57a1e8396f3aba906defb61f4649f44d154c19d
-rw------- 1 restic restic 5.0M Jan 24 18:11 00c1526b0449bf51119b28d17b11b24925b4df59ae1742e24d75b665acd25aa4
-rw------- 1 restic restic 4.3M Jan 24 18:11 00c167e2ffca9bbd82bb2ce83d575d1994ebc4ae422075af8023c8868996a8f4
-rw------- 1 restic restic  12M Jan 24 18:11 00c2eaa4d032d386a39aa828ba36182052f457e5157bfb8799379d72598eb97d
-rw------- 1 restic restic 5.3M Jan 24 18:12 00c32ab33a112e290bebc3ef448d716d5034b0d99d699f3d08c7254d905245cd
-rw------- 1 restic restic 4.4M Jan 24 18:11 00c52450ff69e766ec517f5871ddadc3c7c31844925dc9d5289c1314fb45cd0b
-rw------- 1 restic restic 6.8M Jan 24 18:11 00c947f07cec3c94e0b6b46860110dafe41310b8001764cfbe379363fa5d0cbc
-rw------- 1 restic restic 5.6M Jan 24 18:12 00ccff47b111a3e7fcfdbd388162a4321831d8e77fe702fe3b14d88e3598780b
-rw------- 1 restic restic 4.3M Jan 24 18:11 00ce82173ab1145958101ff9be389251ad610f576416c024dc72fa1528d6e340
-rw------- 1 restic restic 4.1M Jan 24 18:12 00cf14a24f83e5040db2856f0429d155a2377ce8433a247b01bb88675149a2a6
-rw------- 1 restic restic 4.6M Jan 24 18:11 00cf80648e0ef13333b5078937aa7b5b48026050526af97da53e40d13d9ec24b
-rw------- 1 restic restic 5.9M Jan 24 18:12 00d1b149d2ca0dd84ed31d6d095ac7c72e673c8935e0572ded70105487e99b70
-rw------- 1 restic restic 6.0M Jan 24 18:12 00d2cdd192b5d4ffe6056a2bc0f3e23a73803c032fd5bca531b98672e2f5b2bf
-rw------- 1 restic restic 5.0M Jan 24 18:11 00d395f024459dd62809900a410a0f0251b6b9d6cfee9091a656b5e9abfeedc2
-rw------- 1 restic restic 5.6M Jan 24 18:12 00d3bf039c4c126c68fe94f514157603a91c3d1ea5743b6a4aac136972021916
-rw------- 1 restic restic 6.0M Jan 24 18:11 00d4304fc1a3369df8bad6f1bf47377e1f4567e168494270fd67dc686ae936d1
-rw------- 1 restic restic 4.2M Jan 24 18:12 00d5476f8a8596f3661e71a54429c8a6d6ade63bda409f7873cf1a56b71f3fa6
-rw------- 1 restic restic 4.1M Jan 24 18:11 00d557d355d6c172ddbcb593956eb99ffc46ca0d9790e99a66ac2946186a6b0d
-rw------- 1 restic restic 5.1M Jan 24 18:11 00d63cbb4364da18e54a017f5f4329f94c1685b6ba63fe65c7f3461e8b19a6c6
-rw------- 1 restic restic 4.1M Jan 24 18:11 00d7303fb523c9ee3e9c04754b196d17f4377d0dfbc1c0004c3e690edaeefda3
-rw------- 1 restic restic 4.2M Jan 24 18:11 00d9125b1b46a6cf18de83d111bf4f526c78008b07b6bd4301e93f905352323f
-rw------- 1 restic restic 4.8M Jan 24 18:11 00dadbfa53bc8f09c84bf1ec966faa10445918c85dff2aa14a9847529ac4535e
-rw------- 1 restic restic 4.6M Jan 24 18:11 00dbf15c1414c0a5bbd591c57913ef3542c61515a01a47a18e9ee624b62505bf
-rw------- 1 restic restic 4.2M Jan 24 18:11 00dc813769e3e6e122e4340b36070ac81227044c2c8955ebc943942fbd152afa
-rw------- 1 restic restic 4.4M Jan 24 18:11 00de48e762b53e091c35b82e4b62cc7d89f7d1a3e2dd273fda56cf53cca2db32
-rw------- 1 restic restic 4.8M Jan 24 18:11 00df8d4b9da389a4353c44b6f7e99fd528e5fee96c6fb95366282023e470039b
-rw------- 1 restic restic 5.1M Jan 24 18:12 00dff3d20a7cacdc354c2cdfdbccb1d2a56daae5ea901b4564a625c2eaf5b2db
-rw------- 1 restic restic 4.6M Jan 24 18:11 00e0a1eced510d86ad30e5e3cc3e702bc5c50f25062a18fd69008abec04c0324
-rw------- 1 restic restic 4.3M Jan 24 18:11 00e4287dfc2e29cfeb08a4a75907339c4f692a9e8e85aba25941adc5010dd008
-rw------- 1 restic restic 4.9M Jan 24 18:11 00e44e9674cc2a0762fbfbd2309e9edd7ea3f339ce401eb6b29e9ac42640f169
-rw------- 1 restic restic 4.6M Jan 24 18:11 00e4b03000868edf730449e8359027de60c9d0a282bf65a8bbc9a174d7d72288
-rw------- 1 restic restic 7.2M Jan 24 18:12 00e8b7dae39474f1a0d360141abf27b1b5e4bc7b7bacdb190c9b4f8d9d70fcc3
-rw------- 1 restic restic 4.4M Jan 24 18:12 00e94ec690043065759d0c2dbba494930e225e2f02b3c3c87f0a607ddef00610
-rw------- 1 restic restic 5.0M Jan 24 18:11 00e9fc5c48d7017e2d3102c3b840cba094121837521cba113a2d7e6dd08e38c8
-rw------- 1 restic restic 4.2M Jan 24 18:11 00eb56f4af8298acafcb28b63b100265ca2ddb01b1da449052503fe0c1f61879
-rw------- 1 restic restic 5.2M Jan 24 18:11 00f51abc90c93d8bc896818edd99cffe2eeecbc5ef34820cfeed92378ee5a9bd
-rw------- 1 restic restic 5.5M Jan 24 18:11 00f55381c718dc2ba189cb0d5d991af186e28d29ad2d3563f50d94cc03c1515f
-rw------- 1 restic restic 6.0M Jan 24 18:11 00f79090eb5dcc7c49854fdde8df9c34fe588d202c68969311734f4af05f7ccd
-rw------- 1 restic restic 5.7M Jan 24 18:11 00f876acd680aa645edf2bd09d1111ff7190a524226341b65b54c81d984c7946
-rw------- 1 restic restic 4.6M Jan 24 18:11 00fc650f6459aa1ef00961eb2f3b2001ca0c0ea9abe72a30f3308614aebb7ba4
-rw------- 1 restic restic  11M Jan 24 18:12 00fe0aa7915fef8d5263914375b57de8a85a3705b9657d62302dd864b59a2d00

I was trying to figure out what happened with this repository and I think I found the problem.

The computer that created the repository is running a different version of restic…
Computer A:

$ restic version
restic 0.8.3
compiled with go1.10 on linux/amd64

In the other hand, the server is running a more recent version:
Computer B:

 $ restic version
restic 0.9.6 compiled with go1.13.4 on linux/amd64

So, in the end, I do can open the repository and operate all things normally, but only from Computer A.

So, for now, I have the following questions:

  1. Is indeed some sort of incompatibility between this two versions?

  2. What can I do to operate the repository from a computer running newer versions of the program?

This looks a hell of a lot more like the repository was rsync’d from one system to another but the source and/or destination were not correct. The snapshots directory should not contain a data directory. These directories should be siblings under the repository root.

Basically, it looks like somewhere along the line some of the repository’s data got moved around where it shouldn’t be.

The repository format has not changed between 0.8.3 and 0.9.6 that I’m aware of… definitely not in a backwards-incompatible way. This looks like damage caused by something other than restic.

2 Likes

Yeah…

It seems you’re right!

I used rsync to copy files from the external hard drive to the server. I think I ran a wrong command and ended up messing up some things…

I changed the “data” to the parent directory and now everything’s fine.

Thank you so much for the help!

1 Like