Store included configuration files within a backup archive #736

Closed
opened 2023-07-31 21:47:57 +00:00 by witten · 2 comments
Owner

What I'd like to do and why

As of #697, top-level borgmatic configuration files get stored within a backup archive when the create action is run. This supports subsequent config bootstrap action invocations, so you can restore your borgmatic configuration on a fresh system. However, if a configuration file includes other configuration files, those configuration files don't get stored, effectively breaking bootstrap on such systems.

So as part of this ticket, consider automatically detecting includes and including those filenames in the set of configuration files to include in an archive.

Other notes / implementation ideas

Note that this will have to be done carefully since relative includes are supported, and there's existing logic to probe for these includes in multiple locations.

### What I'd like to do and why As of #697, top-level borgmatic configuration files get stored within a backup archive when the `create` action is run. This supports subsequent `config bootstrap` action invocations, so you can restore your borgmatic configuration on a fresh system. However, if a configuration file _includes_ other configuration files, those configuration files don't get stored, effectively breaking `bootstrap` on such systems. So as part of this ticket, consider automatically detecting includes and including those filenames in the set of configuration files to include in an archive. ### Other notes / implementation ideas Note that this will have to be done carefully since relative includes are supported, and there's existing logic to probe for these includes in multiple locations.
Author
Owner

Implemented in main and will be part of the next release!

Implemented in main and will be part of the next release!
Author
Owner

Released in borgmatic 1.8.7!

Released in borgmatic 1.8.7!
Sign in to join this conversation.
No Milestone
No Assignees
1 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#736
No description provided.