Skip to content

Total Size in stats is not correct when backup is compressed  #3779

@FATruden

Description

@FATruden

Output of restic version

./restic2 version
restic 0.13.1-dev (compiled manually) compiled with go1.18 on linux/amd64

I have built current master with compression support.

How did you run restic exactly?

./restic2 --verbose -r /mnt/restic/repo2/ stats --mode raw-data

enter password for repository:
repository 193651e2 opened (repo version 2) successfully, password is correct
scanning...
Stats in raw-data mode:
Snapshots processed:   1
   Total Blob Count:   97646
         Total Size:   174.626 GiB

What backend/server/service did you use to store the repository?

local dir

Expected behavior

After backup with compression, i can see actual size which is smaller then in 'stats' output:

du -sh /mnt/restic/repo2
99G	/mnt/restic/repo2

Steps to reproduce the behavior

Backup something with compression and check 'stats' in 'raw-data' mode.

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