Check vs. Stats vs. Bucket Size?

Hey all,

I’m trying to understand the difference between various numbers I’m seeing in restic. My restic prune “remaining” reports about 9TB of data. Restic stats says it’s backing up about 25TB of data. But the actual file system (remote S3 bucket) reports about 15TB of data.

How should I understand the differences here?

1 Like

Hello do you check the info on Manual — restic 0.17.0-dev documentation ?

If I understand correctly, if you backup 1 TB on day one, and the next day you add a few files and backup again, only the new information is saved.
But you have 2 snapshots and if you were to recover all the snapshots, it counts them as 2TB and a little more.

What were the exact commands that returned each individual output (and based on which restic version)? The size difference between the “remaining” number reported by prune and the S3 bucket size is odd. Does the bucket maybe keep old copies of already deleted files?

The “prune remaining” amount came from the end stats shown in “restic prune”. It was a few days ago already but I believe the “stats” came from “restic check”. The S3 bucket just shows a file tree with size of the directory, and I’m sure I’ve already disabled file versioning / trash / etc quite some time ago (checked a few days ago again). I’m using restic 0.14.0

Any reason to use very old restic version? There is no point really in troubleshooting some outdated software versions. Unless for sort of IT archeology hobby.

1 Like

The check command doesn’t show any statistics.

Please use restic 0.16.0+ and run restic stats --mode debug. That should allow us to get a better idea of the repository size.

What does “shows” mean, does it show the size in some web ui?

I don’t think we’ve changed anything that’s particularly relevant here since 0.14.0.