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

Fix issue when using both --dry-run and -v options #21

Merged
merged 1 commit into from
Feb 18, 2018
Merged

Fix issue when using both --dry-run and -v options #21

merged 1 commit into from
Feb 18, 2018

Conversation

newtonne
Copy link
Contributor

@newtonne newtonne commented Feb 3, 2018

Whilst trying to do a backup with both --dry-run and verbosity (either -v 1 or -v 2) set, I encountered the following error:

borg create: error: argument -n/--dry-run: not allowed with argument -s/--stats

This pull request is a pretty quick and dirty fix.
Should probably also add some unit tests that have both verbosity and dry-run set.

@witten
Copy link
Collaborator

witten commented Feb 18, 2018

Thanks for fixing this! I'll go ahead and add some tests separately.

By the way, this issue does not appear to manifest in Borg 1.1.2, but does in Borg 1.1.4. So it must've been something introduced relatively recently.

@witten witten merged commit bb99009 into borgmatic-collective:master Feb 18, 2018
@newtonne
Copy link
Contributor Author

It seems --dry-run was made incompatible with --stats in Borg 1.1.3. See Issue #3298.

@witten
Copy link
Collaborator

witten commented Feb 19, 2018

This has been released as part of borgmatic 1.1.15!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants