Dealing with multiple remote repositories #159

Closed
opened 2019-05-06 12:13:05 +00:00 by decentral1se · 3 comments
Contributor

Hi there, I have a config like so:

    repositories:
        - foo@bar:~/backup
        - baz@bing:~/backup

Where each repository has:

  • A different BORG_PASSPHRASE (encryption_passphrase)
  • Different SSH port (ssh_command)

This use case is where I have a local backup and identical remotes for redundancy. However, I can't trust all remotes, the SSH configurations are different and passwords are too.

So, I need this kind of "per-repository" option configuration. I could create new folders under /etc/borgmatic.d/ and use separate configurations but then my backup would have to run twice :/

Looking at the schema right now (3cb52423d2/borgmatic/config/schema.yaml), I am not sure this is possible.

Hi there, I have a config like so: ``` repositories: - foo@bar:~/backup - baz@bing:~/backup ``` Where each repository has: * A different `BORG_PASSPHRASE` (`encryption_passphrase`) * Different SSH port (`ssh_command`) This use case is where I have a local backup and identical remotes for redundancy. However, I can't trust all remotes, the SSH configurations are different and passwords are too. So, I need this kind of "per-repository" option configuration. I could create new folders under `/etc/borgmatic.d/` and use separate configurations but then my backup would have to run twice :/ Looking at the schema right now (https://github.com/witten/borgmatic/blob/3cb52423d22a5b5726ab0bf2b14fb495d3922d7c/borgmatic/config/schema.yaml), I am not sure this is possible.
Author
Contributor

Oh, I see witten/borgmatic#118 now ...

Oh, I see https://projects.torsion.org/witten/borgmatic/issues/118 now ...
Author
Contributor

Hmmm, https://borgbackup.readthedocs.io/en/stable/faq.html#can-i-copy-or-synchronize-my-repo-to-another-location seems to recommend creating two separate repositories ... which means running twice is the default !? Looks like nothing borgmatic needs to deal with then ;)

Sorry for the noise!

Hmmm, https://borgbackup.readthedocs.io/en/stable/faq.html#can-i-copy-or-synchronize-my-repo-to-another-location seems to recommend creating two separate repositories ... which means running twice is the default !? Looks like nothing borgmatic needs to deal with then ;) Sorry for the noise!
witten added the
question / support
label 2019-05-06 16:12:15 +00:00
Owner

Not a problem! When you specify multiple repositories in a list as per your example, borgmatic does run Borg twice. But the recommended approach with borgmatic if your repository options differ would indeed be to create separate config files in /etc/borgmatic.d/, optionally sharing any config that you want to share via includes. Hope that works out for you.

Not a problem! When you specify multiple repositories in a list as per your example, borgmatic does run Borg twice. But the recommended approach with borgmatic if your repository options differ would indeed be to create separate config files in `/etc/borgmatic.d/`, optionally sharing any config that you want to share via includes. Hope that works out for you.
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#159
No description provided.