Using placeholders in repositories #369

Closed
opened 2020-11-18 18:52:53 +00:00 by fpoulain · 3 comments
Contributor

What I'm trying to do and why

I am replacing an existing made-with-love borg script by borgmatic.

It appears I am using fqdn-dependant repository names.

Borgmatic don't documentate it support this feature, but after reading code and after testing it, it appears to work properly, as it is mentionned in borg's help ("Repository (or Archive) URLs, --prefix, --glob-archives, --comment and --remote-path values support these placeholders").

Other notes / implementation ideas

I simply suggest to mention it in the documentation and to add a simple non regression testing.

Environment

borgmatic version: 1.2.11-1

borgmatic installation method: Debian package

Borg version: 1.1.9-2

operating system and version: Debian 10

#### What I'm trying to do and why I am replacing an existing made-with-love borg script by borgmatic. It appears I am using fqdn-dependant repository names. Borgmatic don't documentate it support this feature, but after reading code and after testing it, it appears to work properly, as it is mentionned in borg's help ("*Repository (or Archive) URLs, --prefix, --glob-archives, --comment and --remote-path values support these placeholders*"). #### Other notes / implementation ideas I simply suggest to mention it in the documentation and to add a simple non regression testing. #### Environment **borgmatic version:** 1.2.11-1 **borgmatic installation method:** Debian package **Borg version:** 1.1.9-2 **operating system and version:** Debian 10
Owner

Thank you for filing this! I'm always striving to make the documentation clearer. Could you say what you mean by "fqdn-dependent repository names" and/or give an example?

I'm imagining you're referring to "remote repositories" as described in the Borg docs, but I want to make sure.

Was the problem that you initially thought, based on the borgmatic docs, borgmatic only supported local filesystem repository paths?

Thank you for filing this! I'm always striving to make the documentation clearer. Could you say what you mean by "fqdn-dependent repository names" and/or give an example? I'm imagining you're referring to "remote repositories" as described in the [Borg docs](https://borgbackup.readthedocs.io/en/stable/usage/general.html#repository-urls), but I want to make sure. Was the problem that you initially thought, based on the borgmatic docs, borgmatic only supported local filesystem repository paths?
Owner

Oh, I see what you're talking about based on the pull request! witten/borgmatic#371 ... Interesting. I didn't even know about that feature.

Oh, I see what you're talking about based on the pull request! https://projects.torsion.org/witten/borgmatic/pulls/371 ... Interesting. I didn't even know about that feature.
Owner

Just released in borgmatic 1.5.11!

Just released in borgmatic 1.5.11!
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#369
No description provided.