Show default options in sample config #103

Closed
opened 2018-10-24 09:34:17 +00:00 by varac · 4 comments

When I create a sample config with generate-borgmatic-config I get a yml file with multiple key/values.

Please make it clear what is the default value for each value.
i.e.:

    # Stay in same file system (do not cross mount points).                                                                                                                              
    one_file_system: true  

What if I remove the one_file_system option ? (I found out that then borg will cross filesystems, but I needed to look into the borgmatic code and the borg documentation).

When I create a sample config with `generate-borgmatic-config` I get a yml file with multiple key/values. Please make it clear what is the default value for each value. i.e.: ``` # Stay in same file system (do not cross mount points). one_file_system: true ``` What if I remove the `one_file_system` option ? (I found out that then borg will cross filesystems, but I needed to look into the borgmatic code and the borg documentation).
Author

Another example:

    # Mode in which to operate the files cache. See                                                                                                                                      
    # https://borgbackup.readthedocs.io/en/stable/usage/create.html#description for                                                                                                      
    # details.                                                                                                                                                                           
    files_cache: ctime,size,inode 

Here, an option is specified which represents the borg default value. In this case please comment it in the config (and mark it as default).

Another example: ``` # Mode in which to operate the files cache. See # https://borgbackup.readthedocs.io/en/stable/usage/create.html#description for # details. files_cache: ctime,size,inode ``` Here, an option is specified which represents the borg default value. In this case please comment it in the config (and mark it as default).
Owner

Makes sense. The only minor risk I could see is if there's drift over time between the borgmatic default value described in configuration file comments and the underlying Borg default. (In cases where the default is provided implicitly by Borg.)

Makes sense. The only minor risk I could see is if there's drift over time between the borgmatic default value described in configuration file comments and the underlying Borg default. (In cases where the default is provided implicitly by Borg.)
Owner

Implemented! This will be part of the next release. Thanks for reporting.

Implemented! This will be part of the next release. Thanks for reporting.
Owner

Just released in borgmatic 1.2.14.

Just released in borgmatic 1.2.14.
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#103
No description provided.