Posit the following scenario: I have a restic repository locally on a NAS, but I want it mirrored to B2.
I think ideally what I’d want is something that looked like…
restic mirror --from-repo local --to-repo b2 $snapshot
And this would compare the blobs on both sides and simply move the blobs necessary to make
$snapshot complete on the target host. After the command was finished, the snapshot in local would appear in b2.
I realize this is possible with
mount or some creative scripting but this way seems the most airtight and least prone to error, also most other solutions I can think of would require rehashing the files.
…oh wait, this doesn’t work because each repo has its own polynomial for the Rabin fingerprints, right?