borgbase / ansible-role-borgbackup

Ansible role to set up Borg and Borgmatic
MIT License
221 stars 98 forks source link

Remove database configs from hooks #139

Open Subbeh opened 11 months ago

Subbeh commented 11 months ago

As of version 1.8.0, database configurations are not defined under hooks anymore and borgmatic fails if the old format is still in use.

Please change the role accordingly so that any database backups are defined at root-level.

https://torsion.org/borgmatic/docs/how-to/backup-your-databases/#database-dump-hooks

agross commented 9 months ago

There are even more breaking changes coming up. These warnings are currently logged for my installation.

WARNING /etc/borgmatic/config.yaml:

Configuration sections (like location:, storage:, retention:, consistency:, and hooks:) are deprecated and support will be removed from a future release. To prepare for this, move your options out of sections to the global scope.

The exclude_if_present option now expects a list value. String values for this option are deprecated and support will be removed from a future release.

The repositories option now expects a list of key/value pairs. Lists of strings for this option are deprecated and support will be removed from a future release.

m3nu commented 9 months ago

I'll update the template and do a major version bump to reflect this.