On a new CentOS 7 system without setting the borg_exclude_patterns and borg_exclude_from variables borgmatic will complain about an invalid configuration file:
summary:
/etc/borgmatic/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
At 'location.exclude_patterns': None is not of type 'array'
At 'location.exclude_from': None is not of type 'array'
This was after deploying and issuing borgmatic -I -e repokey
This change will omit the respective settings when they are empty and thus preventing a configuration error.
On a new CentOS 7 system without setting the
borg_exclude_patterns
andborg_exclude_from
variables borgmatic will complain about an invalid configuration file:This was after deploying and issuing
borgmatic -I -e repokey
This change will omit the respective settings when they are empty and thus preventing a configuration error.