Support for initializing repositories #110

Closed
opened 2018-11-19 22:08:10 +00:00 by varac · 5 comments

Please include support for borg init, the only command I need to do manually outside of borgmatic.

Please include support for `borg init`, the only command I need to do manually outside of borgmatic.
Owner

Interesting idea! How would you envision the specifics of this initialization? For instance, maybe you would create a borgmatic configuration as per usual, and then run something like:

borgmatic --init --encryption=repokey

And it would implicitly use the repository path specified in the borgmatic config, and pass that along to borg init?

Something along those lines? Another other requirements you have in mind?

Interesting idea! How would you envision the specifics of this initialization? For instance, maybe you would create a borgmatic configuration as per usual, and then run something like: ```bash borgmatic --init --encryption=repokey ``` And it would implicitly use the repository path specified in the borgmatic config, and pass that along to `borg init`? Something along those lines? Another other requirements you have in mind?
Author

borgmatic --init --encryption=repokey look good to me.

Another idea was that when bormatic --create doesn't find an iniitlized repo on the first run it could ask if it should inititialise it (and ask for encryption mode i.e.).

But i'd be super fine with an manual call of borgmatic --init --encryption=repokey as start.

`borgmatic --init --encryption=repokey` look good to me. Another idea was that when `bormatic --create` doesn't find an iniitlized repo on the first run it could ask if it should inititialise it (and ask for encryption mode i.e.). But i'd be super fine with an manual call of `borgmatic --init --encryption=repokey` as start.
Owner

Just released as part of borgmatic 1.2.12! Let me know how it works out for you.

Just released as part of borgmatic 1.2.12! Let me know how it works out for you.
Author

@witten: Thx !

@witten: Thx !
Owner

Cool, thanks. My only concern with automatic initialization (with or without a prompt) is that it might not be desired behavior in certain circumstances, e.g. when not run in interactive mode. I'm thinking when you're running borgmatic --create from a cron job, which is pretty common.

Anyway, I'll assume the explicit borgmatic --init approach for starters.

Cool, thanks. My only concern with automatic initialization (with or without a prompt) is that it might not be desired behavior in certain circumstances, e.g. when not run in interactive mode. I'm thinking when you're running `borgmatic --create` from a cron job, which is pretty common. Anyway, I'll assume the explicit `borgmatic --init` approach for starters.
witten added the
design finalized
label 2036-02-07 11:53:30 +00:00
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#110
No description provided.