restic-exporter icon indicating copy to clipboard operation
restic-exporter copied to clipboard

[Feature request] Export actual size by hash

Open Chostakovitch opened this issue 5 months ago • 0 comments

Hey, thanks for the exporter and the amazing dashboard!

My use case is as follows: I have multiple services performing backups, each of which adds a unique tag.

Currently, the metrics show the size of the latest snapshot (per combination of paths) as if it had been restored (i.e. restic stats --mode=restore-size).

To me it would be useful to know the actual size taken by all the snapshots of a service. For example, we could detect heavy changes in big files resulting in repository growth, which would go undetected if the restored size of the latest snapshot remains stable. I would use: restic stats --mode=raw-data --tag=<service>.

To fit the exporter's model, it would be 'restic stats --mode=raw-data ...', where ids are from snapshots sharing the same path. This has to be done in a single command so that restic doesn't count blobs multiple times.

  1. Do you think this is a good idea?
  2. Are you open to pull requests?

Related to #29.

Chostakovitch avatar Jul 29 '25 15:07 Chostakovitch