borgmatic: error: argument : invalid choice: 'compact' #624

Closed
opened 2022-12-23 19:15:43 +00:00 by macguirerintoul · 3 comments
Contributor

Thanks for the awesome tool!

What I'm trying to do and why

Use borgmatic to compact a repository

Steps to reproduce (if a bug)

  1. $ borgmatic compact

Actual behavior (if a bug)

➜  ~ borgmatic compact --verbosity 2
usage: borgmatic [-h] [-c [CONFIG_PATHS ...]] [--excludes EXCLUDES_FILENAME] [-n] [-nc] [-v {-1,0,1,2}] [--syslog-verbosity {-1,0,1,2}] [--log-file-verbosity {-1,0,1,2}] [--monitoring-verbosity {-1,0,1,2}]
                 [--log-file LOG_FILE] [--override SECTION.OPTION=VALUE [SECTION.OPTION=VALUE ...]] [--version]
                 ...
borgmatic: error: argument : invalid choice: 'compact' (choose from 'init', '--init', '-I', 'prune', '--prune', '-p', 'create', '--create', '-C', 'check', '--check', '-k', 'extract', '--extract', '-x', 'export-tar', '--export-tar', 'mount', '--mount', '-m', 'umount', '--umount', '-u', 'restore', '--restore', '-r', 'list', '--list', '-l', 'info', '--info', '-i', 'borg')
Error parsing arguments: /usr/bin/borgmatic compact --verbosity 2

Need some help? https://torsion.org/borgmatic/#issues

Expected behavior (if a bug)

borgmatic compacts the repository

Other notes / implementation ideas

N/A

Environment

borgmatic version: 1.5.20

borgmatic installation method: apt install borgmatic

Borg version: borg 1.2.0

Python version: Python 3.10.6

Database version (if applicable): N/A

operating system and version: Linux ubuntu 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Thanks for the awesome tool! #### What I'm trying to do and why Use borgmatic to compact a repository #### Steps to reproduce (if a bug) 1. `$ borgmatic compact` #### Actual behavior (if a bug) ``` ➜ ~ borgmatic compact --verbosity 2 usage: borgmatic [-h] [-c [CONFIG_PATHS ...]] [--excludes EXCLUDES_FILENAME] [-n] [-nc] [-v {-1,0,1,2}] [--syslog-verbosity {-1,0,1,2}] [--log-file-verbosity {-1,0,1,2}] [--monitoring-verbosity {-1,0,1,2}] [--log-file LOG_FILE] [--override SECTION.OPTION=VALUE [SECTION.OPTION=VALUE ...]] [--version] ... borgmatic: error: argument : invalid choice: 'compact' (choose from 'init', '--init', '-I', 'prune', '--prune', '-p', 'create', '--create', '-C', 'check', '--check', '-k', 'extract', '--extract', '-x', 'export-tar', '--export-tar', 'mount', '--mount', '-m', 'umount', '--umount', '-u', 'restore', '--restore', '-r', 'list', '--list', '-l', 'info', '--info', '-i', 'borg') Error parsing arguments: /usr/bin/borgmatic compact --verbosity 2 Need some help? https://torsion.org/borgmatic/#issues ``` #### Expected behavior (if a bug) borgmatic compacts the repository #### Other notes / implementation ideas N/A #### Environment **borgmatic version:** `1.5.20` **borgmatic installation method:** `apt install borgmatic` **Borg version:** `borg 1.2.0` **Python version:** `Python 3.10.6` **Database version (if applicable):** N/A **operating system and version:** `Linux ubuntu 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux`
Owner

Time to upgrade borgmatic! 😄 The "compact" feature was introduced in borgmatic 1.5.23. I see that you installed via apt in Ubuntu, which may or may not have a newer version of borgmatic available. So you might consider one of the other installation methods which would have newer versions. Failing that, you can try borgmatic borg compact with your existing installation.

Hope that helps!

Time to upgrade borgmatic! 😄 The "compact" feature was introduced in borgmatic 1.5.23. I see that you installed via `apt` in Ubuntu, which may or may not have a newer version of borgmatic available. So you might consider one of the [other installation methods](https://torsion.org/borgmatic/docs/how-to/set-up-backups/#installation) which would have newer versions. Failing that, you can try [`borgmatic borg compact`](https://torsion.org/borgmatic/docs/how-to/run-arbitrary-borg-commands/) with your existing installation. Hope that helps!
witten added the
question / support
label 2022-12-23 20:28:06 +00:00
Author
Contributor

Thanks a lot, I appreciate the thorough reply! I'm using the LTS version of Ubuntu server (Jammy Jellyfish), for which the latest borgmatic version published is 1.5.20-1

Thanks a lot, I appreciate the thorough reply! I'm using the LTS version of Ubuntu server (Jammy Jellyfish), for which the latest borgmatic version published is `1.5.20-1`
Owner

Yup, that package is controlled by the Ubuntu maintainers, so unfortunately it isn't always up to date. I merged your PR, so I'll call this done for now! Let me know if you need help with anything else.

Yup, that package is controlled by the Ubuntu maintainers, so unfortunately it isn't always up to date. I merged your PR, so I'll call this done for now! Let me know if you need help with anything else.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#624
No description provided.