Extend extra_borg_options with other commands #1103

Closed
opened 2025-05-29 07:40:23 +00:00 by etkecc · 3 comments

What I'd like to do and why

Hello,

Please support more borg commands in the extra_borg_options dict (I care about borg info specifically).

I'm using rsync.net for borg repositories, and starting from May 16 2025 they require extra args (specifically, --remote-path) to be set when using borgbackup.

Unfortunately, currently borgmatic does not have borg info support in the extra_borg_options dict, and thus my usual flow of repo init/backup/check fails with

May 29 04:33:21 myhost borgmatic[1084854]: Command '('borg', 'info', '--json', 'ssh://user@user.rsync.net/./yourborgbackup')' returned non-zero exit status 81.

Other notes / implementation ideas

Here is an excerpt from rsync.net's alert:

As discussed in previous announcements, we now require a "--remote-path" argument when using borg.

The backups (above) are likely failing at this moment and require minor command adjustments to restore proper functionality.

To fix this:

Adjust your borg command to add a "--remote-path" argument to indicate which branch you want to use, here are some examples:

borg list --remote-path=borg12 user@user.rsync.net:yourborgbackup

'borg12' will call the lastest version we offer in the 1.2.x series (currently 1.2.8)

borg list --remote-path=borg14 user@user.rsync.net:yourborgbackup

'borg14' will call the lastest version we offer in the 1.4.x series (currently 1.4.0)

The full list of 'borg' binaries and the corresponding "--remote-path" argument that may be called is:

--remote-path=borg0 (borg v0.29)
--remote-path=borg12 (1.2.x branch)
--remote-path=borg14 (1.4.x branch)

Please let us know if you have any questions about these changes.

Thank you for your continued business.

-rsync.net Support

### What I'd like to do and why Hello, Please support more borg commands in the `extra_borg_options` dict (I care about `borg info` specifically). I'm using rsync.net for borg repositories, and starting from May 16 2025 they require extra args (specifically, `--remote-path`) to be set when using borgbackup. Unfortunately, currently borgmatic does not have `borg info` support in the `extra_borg_options` dict, and thus my usual flow of repo init/backup/check fails with ``` May 29 04:33:21 myhost borgmatic[1084854]: Command '('borg', 'info', '--json', 'ssh://user@user.rsync.net/./yourborgbackup')' returned non-zero exit status 81. ``` ### Other notes / implementation ideas Here is an excerpt from rsync.net's alert: As discussed in previous announcements, we now require a "--remote-path" argument when using borg. The backups (above) are likely _failing_ at this moment and require minor command adjustments to restore proper functionality. To fix this: Adjust your borg command to add a "--remote-path" argument to indicate which branch you want to use, here are some examples: borg list --remote-path=borg12 user@user.rsync.net:yourborgbackup 'borg12' will call the lastest version we offer in the 1.2.x series (currently 1.2.8) borg list --remote-path=borg14 user@user.rsync.net:yourborgbackup 'borg14' will call the lastest version we offer in the 1.4.x series (currently 1.4.0) The full list of 'borg' binaries and the corresponding "--remote-path" argument that may be called is: --remote-path=borg0 (borg v0.29) --remote-path=borg12 (1.2.x branch) --remote-path=borg14 (1.4.x branch) Please let us know if you have any questions about these changes. Thank you for your continued business. -rsync.net Support
Owner

Thanks for filing this. To add a remote path to all borg info commands that borgmatic issues, you can just set the existing remote_path option in configuration. If you find that that's not the case, please let me know.

As for fleshing out extra_borg_options, there's already a ticket for that: #427.

Thanks for filing this. To add a remote path to all `borg info` commands that borgmatic issues, you can just set the existing `remote_path` option in configuration. If you find that that's not the case, please let me know. As for fleshing out `extra_borg_options`, there's already a ticket for that: #427.
Author

Thank you for the details!

It looks like I've completely missed the existing remote_path config option

Thank you for the details! _It looks like I've completely missed the existing `remote_path` config option_
Owner

No worries!

No worries!
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#1103
No description provided.