Skip to content

"borg compact --dry-run --verbose" could show the estimated freed space #9379

@adrian-amaglio

Description

@adrian-amaglio

I’d like to measure compaction freed space before actually removing segments to detect massive data loss or gain (due to backup suppression or cryptolocker attack).
In my case, this information could trigger an alert and ask for manual confirmation of data deletion.

Currently, this command outputs nothing borg compact --dry-run --verbose <repo>.
It is on purpose if I understand #8300 correctly.

Is it technically possible and would it be useful to have a dry compact that actually estimate freed space?

To allow fast dry scripts as the one mentioned in #8300 it could be another command, doing some work but not actually deleting data.

Thanks for your borgbackup work <3

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