Skip to content

Server-side checksumming  #299

@santiagobiali

Description

@santiagobiali

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.

Did rest-server help you today? Did it make you happy in any way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions