From 86b138e73b445347a60a3438030f8c965008a2f6 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 8 Mar 2025 21:00:58 -0800 Subject: [PATCH] Clarify command hook documentation. --- .../add-preparation-and-cleanup-steps-to-backups.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 02e41f43..aa0fbcfb 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 @@ -7,12 +7,13 @@ eleventyNavigation: --- ## Preparation and cleanup hooks -If you find yourself performing preparation tasks before your backup runs, or -cleanup work afterwards, borgmatic hooks may be of interest. Hooks are shell -commands that borgmatic executes for you at various points as it runs, and -they're configured in the `hooks` section of your configuration file. But if -you're looking to backup a database, it's probably easier to use the [database -backup +If you find yourself performing preparation tasks before your backup runs or +cleanup work afterwards, borgmatic command hooks may be of interest. These are +custom shell commands you can configure borgmatic to execute at various points +as it runs. + +But if you're looking to backup a database, it's probably easier to use the +[database backup feature](https://torsion.org/borgmatic/docs/how-to/backup-your-databases/) instead.