Skip to content

rewrite copies "Size" metadata instead of recalculating it if files have been excluded #4902

@CommanderRoot

Description

@CommanderRoot

Output of restic version

restic 0.16.5-dev (compiled manually) compiled with go1.22.0 on windows/amd64

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

local

Problem description / Steps to reproduce

I used restic rewrite to exclude some folders / files from a few existing snapshots

Expected behavior

If files / folders get excluded in a rewrite then restic should recalculate the "Size" value which it displays when using restic snapshots

Actual behavior

Restic just copies the "Size" metadata which results in both the original and the rewritten snapshot displayed with the same size

Do you have any idea what may have caused this?

I haven't looked at the code but my guess would be that this "step" was simply forgotton as no other metadata is changed (except if you ask it to)

Did restic help you today? Did it make you happy in any way?

restic is great and I use it for server backups as well as dekstop pc backups

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions