I think this is a sign of an undetected error when creating the initial backup to Wasabi with duplicacy. This is why:
- I backed up directly to Wasabi.
- I created a new local storage using duplicacy add -copy.
- I copied the config file and the snapshot files from Wasabi to the local storage thus created, so the same encryption keys would be used.
- I backed up directly into my new local storage. Since it used the same parameters including the same encryption keys, it created the very same chunks.
- Against the local storage, I ran duplicacy check and (manually) copied missing chunks from Wasabi to the local storage until duplicacy check completed successfully.
- Against the local storage, I ran duplicacy check with the -files option. It took days but it completed successfully with no issues. I am therefore absolutely confident that the local storage is OK.
- As above … I ran duplicacy restore to restore from Wasabi into a new repository. It failed.
- I downloaded the failing chunk from Wasabi and compared it to the chunk from the local storage. They are different. They are exactly the same size, but their contents are completely different.
- I uploaded the chunk from the local storage into Wasabi.
- I am now running the same restore that failed. It’s still going but it is past the chunk that it was getting stuck on.
The chunk on Wasabi was wrong. This could only have happened during the backup. Or after, I guess, if you think it’s credible that bit rot did this on the Wasabi end.
It could be a problem with duplicacy or a library it depends on, or a problem with Wasabi.
The working chunk starts with “duplicacy\x00”. The corrupt chunk does not. Adjacent chunks on Wasabi also start with “duplicacy\x00”. So far this is the only one that doesn’t.