-
Notifications
You must be signed in to change notification settings - Fork 166
Description
Output of rest-server --version
:
rest-server version rest-server 0.13.0 compiled with go1.22.5 on linux/amd64
What should rest-server do differently?
Add a function in rest-server that calculates the sha256sum of a given file in the repository and returns the checksum.
What are you trying to do? What is your use case?
Scenario: a server running rest-server <-- limited network bandwidth --> a client running Restic client.
I'm trying to add more consistency to the restic check
without needing to download the whole repository to the client's machine.
As every file inside the folder /repository/data has it's sha256sum as it's own name, and the checksum is known for every file. Restic could use it to detect corrupted files when running restic check --checksum-only
.
This way, a basic check could be performed on the whole repository without the need to transfer all the data from the server to the client to check.
This check isn't as complete as the default one because it doesn't decrypt the data, but it's way faster.
And yes, some logic will also be needed to be implemented on the Restic client, but as it's this check is only possible if using the rest-server, I found this github repository to be the most reasonable to discuss this feature.