Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--dry-run would be useful for 'borg compact' #8300

Closed
yrro opened this issue Jul 22, 2024 · 1 comment
Closed

--dry-run would be useful for 'borg compact' #8300

yrro opened this issue Jul 22, 2024 · 1 comment
Assignees

Comments

@yrro
Copy link

yrro commented Jul 22, 2024

Have you checked borgbackup docs, FAQ, and open GitHub issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Feature request

Describe the problem you're observing.

--dry-run isn't available for borg compact.

My wrapper script has to handle this by skipping the execution of borg compact when in dry run mode, rather than adding --dry-run to the borg command line. No big deal, but it would be nice if this option was present for compact as it is with create/prune.

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Jul 22, 2024

Interesting idea for making scripting a bit easier.

I have to check whether a borg compact --dry-run can be doing anything useful (like e.g. saying how much it would compact/free) without actually doing it.

@ThomasWaldmann ThomasWaldmann added this to the 1.4.1 milestone Jul 22, 2024
ThomasWaldmann added a commit to ThomasWaldmann/borg that referenced this issue Dec 24, 2024
Sole purpose of this is to simplify scripting.
@ThomasWaldmann ThomasWaldmann self-assigned this Dec 24, 2024
ThomasWaldmann added a commit that referenced this issue Dec 24, 2024
compact: support --dry-run (do nothing), fixes #8300
@ThomasWaldmann ThomasWaldmann removed this from the 1.4.1 milestone Dec 24, 2024
ThomasWaldmann added a commit that referenced this issue Dec 29, 2024
compact: support --dry-run (do nothing), fixes #8300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants