extra_borg_options info fails #1304

Closed
opened 2026-05-02 02:03:25 +00:00 by dan · 3 comments

What I'm trying to do and why

Hey

I need to pass the --remote-path to borg info which is needed for rsync.net.

extra_borg_options:
    # Extra command-line options to pass to "borg info".
    info: --remote-path=borg14
                                   
    # Extra command-line options to pass to "borg init".
    init: --remote-path=borg14     
                                   
    # Extra command-line options to pass to "borg create".
    create: --remote-path=borg14 --filter AMEhsx --show-rc --exclude-caches --stats --list --progress --verbose --compression zstd,11
                                   
    # Extra command-line options to pass to "borg prune".
    prune: --remote-path=borg14
 
    # Extra command-line options to pass to "borg compact".
    compact: --remote-path=borg14
 
    # Extra command-line options to pass to "borg check".
    check: --remote-path=borg14

The validation fails:

summary:
/etc/borgmatic/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
At 'extra_borg_options': Additional properties are not allowed ('info' was unexpected)
Configuration validation failed

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

If I comment info out there is no issue but the borgmatic run fails until it runs borg info --json server.

Regarding to the docs - https://torsion.org/borgmatic/reference/configuration/#extra_borg_options-option that should be possible, right?

borgmatic version

1.9.14

borgmatic installation method

Debian package/s

Borg version

borg 1.4.0

Python version

Python 3.13.5

Database version (if applicable)

No response

Operating system and version

Debian 13.4

### What I'm trying to do and why Hey I need to pass the `--remote-path` to `borg info` which is needed for rsync.net. ``` extra_borg_options: # Extra command-line options to pass to "borg info". info: --remote-path=borg14 # Extra command-line options to pass to "borg init". init: --remote-path=borg14 # Extra command-line options to pass to "borg create". create: --remote-path=borg14 --filter AMEhsx --show-rc --exclude-caches --stats --list --progress --verbose --compression zstd,11 # Extra command-line options to pass to "borg prune". prune: --remote-path=borg14 # Extra command-line options to pass to "borg compact". compact: --remote-path=borg14 # Extra command-line options to pass to "borg check". check: --remote-path=borg14 ``` The validation fails: ``` summary: /etc/borgmatic/config.yaml: Error parsing configuration file An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml: At 'extra_borg_options': Additional properties are not allowed ('info' was unexpected) Configuration validation failed Need some help? https://torsion.org/borgmatic/#issues ``` If I comment `info` out there is no issue but the borgmatic run fails until it runs `borg info --json server`. Regarding to the docs - https://torsion.org/borgmatic/reference/configuration/#extra_borg_options-option that should be possible, right? ### borgmatic version 1.9.14 ### borgmatic installation method Debian package/s ### Borg version borg 1.4.0 ### Python version Python 3.13.5 ### Database version (if applicable) _No response_ ### Operating system and version Debian 13.4
Owner

borgmatic 1.9.14 doesn't support info in extra_borg_options! You'll need to upgrade to at minimum borgmatic 2.0.11 for that to work.

The good news though is that borgmatic has a native remote_path option—so you shouldn't need to use extra_borg_options at all! Try this in your borgmatic configuation:

remote_path: borg14
borgmatic 1.9.14 doesn't support `info` in `extra_borg_options`! You'll need to upgrade to at minimum borgmatic 2.0.11 for that to work. The good news though is that borgmatic has a native `remote_path` option—so you shouldn't need to use `extra_borg_options` at all! Try this in your borgmatic configuation: ```yaml remote_path: borg14 ```
Author

Thanks!

That worked!

Thanks! That worked!
dan closed this issue 2026-05-02 03:05:09 +00:00
Owner

Glad to hear that did it!

Glad to hear that did it!
Sign in to join this conversation.
No milestone
No project
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#1304
No description provided.