From 965740c778c66697ead8ae59dbbb8c0c483bdd43 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 10 Mar 2025 10:37:09 -0700 Subject: [PATCH] Update version of command hooks since they didn't get released in 1.9.14 (#1019). --- NEWS | 8 +++++--- .../add-preparation-and-cleanup-steps-to-backups.md | 4 ++-- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index e9b991a6..bff2f68a 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,12 @@ +2.0.0dev0 + * #790: Deprecate all "before_*", "after_*" and "on_error" command hooks in favor of more flexible + "commands:". See the documentation for more information: + https://torsion.org/borgmatic/docs/how-to/add-preparation-and-cleanup-steps-to-backups/ + 1.9.14 * #409: With the PagerDuty monitoring hook, send borgmatic logs to PagerDuty so they show up in the incident UI. See the documentation for more information: https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/#pagerduty-hook - * #790: Deprecate all "before_*", "after_*" and "on_error" command hooks in favor of more flexible - "commands:". See the documentation for more information: - https://torsion.org/borgmatic/docs/how-to/add-preparation-and-cleanup-steps-to-backups/ * #936: Clarify Zabbix monitoring hook documentation about creating items: https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/#zabbix-hook * #1017: Fix a regression in which some MariaDB/MySQL passwords were not escaped correctly. diff --git a/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md b/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md index 0d337e76..98f20ccf 100644 --- a/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md +++ b/docs/how-to/add-preparation-and-cleanup-steps-to-backups.md @@ -17,7 +17,7 @@ points as it runs. feature](https://torsion.org/borgmatic/docs/how-to/backup-your-databases/) instead.) -New in version 1.9.14 Command +New in version 2.0.0 Command hooks are now configured via a list of `commands:` in your borgmatic configuration file. For example: @@ -106,7 +106,7 @@ configuration files. ### Deprecated command hooks -Prior to version 1.9.14 The +Prior to version 2.0.0 The command hooks worked a little differently. In these older versions of borgmatic, you can specify `before_backup` hooks to perform preparation steps before running backups and specify `after_backup` hooks to perform cleanup steps diff --git a/pyproject.toml b/pyproject.toml index fdded2be..d01b6f8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "borgmatic" -version = "1.9.14" +version = "2.0.0dev0" authors = [ { name="Dan Helfman", email="witten@torsion.org" }, ]