Hello everyone!
I am receiving a lot o messages from my personal backup/repository:
restic stats
repository 6d9f087d opened successfully, password is correct
scanning…
walking tree 02c2b5841d2202398c02535dd549fa17291f10a22eb0ac3ee9fc6a435dd216c6: tree 02c2b5841d2202398c02535dd549fa17291f10a22eb0ac3ee9fc6a435dd216c6 not found in repository
restic find
repository 6d9f087d opened successfully, password is correct
Unable to load tree a3d42dfe1be29734192ca3865d3c7b28ac2118f5fde86a9576d4e411da4141be
… which belongs to snapshot e187bb0ba0d142deb715d19dbac80f164479c21493c99d6970b3409a09f7f8e7.
Unable to load tree 2646df869fb727d3a12215c8d8d921443bbad00e3b3bd589065e5fe3c16be7f8
… which belongs to snapshot e3d2f3f25426ce96cd568adf70893a6d2248a2008f08a67c2754c0f797902106.
Unable to load tree d017dfebfde1b7f1e472127394e072c0756ba81e14e28490c201e5586372f10c
… which belongs to snapshot e7dd95f98846dc947b63b2d5edba1f83b8628204ce6db117eb39a19dc48c1d0d.
Unable to load tree b3c1933de9bf26ab4ac1a429dd1cd0c1e70e9ed4259c128a10d0a72e170ad50d
… which belongs to snapshot ebcbdfa386d8ad4ce254a53346d39cc11466f84ceb3b5e72b01eb6d1c7b73e6c.
Unable to load tree 40e31ba3eeda5dfb26fecba20b53b785bdb6fe5dd4a9497af74f28a66a1b2096
… which belongs to snapshot f4021a24a4d2cd672fca025872165ddbdae71131b159c5a78c3f8352066e2ae9.
… and so on
restic check
error for tree 742d8ed6:
tree 742d8ed6: file “README” blob 0 size could not be found
tree 742d8ed6: file “init.py” blob 0 size could not be found
tree 742d8ed6: file “do_example.py” blob 0 size could not be found
tree 742d8ed6: file “do_exchain.py” blob 0 size could not be found
tree 742d8ed6: file “do_exploitable.py” blob 0 size could not be found
tree 742d8ed6: file “do_symfix.py” blob 0 size could not be found
tree 742d8ed6, blob 8efd4ce2: not found in index
tree 742d8ed6, blob 85961b36: not found in index
tree 742d8ed6, blob 422a93fd: not found in index
tree 742d8ed6, blob ea4f6931: not found in index
tree 742d8ed6, blob 735ff9b5: not found in index
tree 742d8ed6, blob c7552590: not found in index
error for tree e738a765:
tree e738a765: file “init.py” blob 0 size could not be found
tree e738a765: file “pydevd_helpers.py” blob 0 size could not be found
tree e738a765: file “pydevd_plugin_numpy_types.py” blob 0 size could not be found
tree e738a765: file “pydevd_plugins_django_form_str.py” blob 0 size could not be found
tree e738a765, blob 037628a5: not found in index
tree e738a765, blob 366f60d7: not found in index
tree e738a765, blob 4662789d: not found in index
tree e738a765, blob 8d03d5a2: not found in index
error for tree 7db25783:
tree 7db25783: file “README” blob 0 size could not be found
tree 7db25783: file “init.py” blob 0 size could not be found
tree 7db25783: file “do_example.py” blob 0 size could not be found
tree 7db25783: file “do_exchain.py” blob 0 size could not be found
tree 7db25783: file “do_exploitable.py” blob 0 size could not be found
tree 7db25783: file “do_symfix.py” blob 0 size could not be found
tree 7db25783, blob 8efd4ce2: not found in index
tree 7db25783, blob 85961b36: not found in index
tree 7db25783, blob 422a93fd: not found in index
tree 7db25783, blob ea4f6931: not found in index
tree 7db25783, blob 735ff9b5: not found in index
tree 7db25783, blob c7552590: not found in index
… and so on
restic prune
counting files in repo
building new index for repo
[5:08] 100.00% 18058 / 18058 packstree 02c2b5841d2202398c02535dd549fa17291f10a22eb0ac3ee9fc6a435dd216c6 not found in repository
…github.com/restic/restic/internal/repository.(*Repository).LoadTree
/restic/internal/repository/repository.go:713
…github.com/restic/restic/internal/restic.FindUsedBlobs
/restic/internal/restic/find.go:11
main.pruneRepository
/restic/cmd/restic/cmd_prune.go:191
main.runPrune
/restic/cmd/restic/cmd_prune.go:85
main.glob…func18
/restic/cmd/restic/cmd_prune.go:25
…github.com/spf13/cobra.(*Command).execute
/restic/vendor/github.com/spf13/cobra/command.go:762
…github.com/spf13/cobra.(*Command).ExecuteC
/restic/vendor/github.com/spf13/cobra/command.go:852
…github.com/spf13/cobra.(*Command).Execute
/restic/vendor/github.com/spf13/cobra/command.go:800
main.main
/restic/cmd/restic/main.go:86
runtime.main
/usr/local/go/src/runtime/proc.go:203
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1357
repository contains 18058 packs (531155 blobs) with 83.220 GiB
processed 531155 blobs: 36506 duplicate blobs, 716.422 MiB duplicate
load all snapshots
find data that is still in use for 59 snapshots
… and so on
restic rebuild-index
counting files in repo
[0:05] 100.00% 18058 / 18058 packsfinding old index files
saved new indexes as [4fecbd8d fa3c4282 c86b7b4e 384ba6dc a2045f82 b887f2c9 38d1891a]
remove 7 old index files
… and the same each time
I am sure that what I did was unplug the external drive while pruning. Actually I unplugged the USB3 HUB and didn’t even notice.
Is there a way for me to fix it?
Cheers!
[Edit]
I forgot to mention that I can add to the repository with no errors thrown.
Files: 3474 new, 1908 changed, 122746 unmodified
Dirs: 0 new, 7 changed, 5 unmodified
Data Blobs: 1246 new
Tree Blobs: 7 new
Added to the repo: 142.538 MiBprocessed 128128 files, 27.028 GiB in 1:13
snapshot 2cb85d11 saved