From 1fdec480d6e2d77749abd760dbc26a8c9096f710 Mon Sep 17 00:00:00 2001 From: "Jelle @ Samson-IT" <71821148+Jelle-SamsonIT@users.noreply.github.com> Date: Wed, 13 Jul 2022 13:29:45 +0200 Subject: [PATCH] Added some info about fetching mysql database size --- docs/how-to/inspect-your-backups.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/how-to/inspect-your-backups.md b/docs/how-to/inspect-your-backups.md index 318eb6e..e4574d7 100644 --- a/docs/how-to/inspect-your-backups.md +++ b/docs/how-to/inspect-your-backups.md @@ -75,6 +75,16 @@ example, to search only the last five archives: borgmatic list --find foo.txt --last 5 ``` +## Monitoring mysql backup size + +If you have enabled borgmatic's native mysql hook you can fetch the size of your individual sql backups from the backup target itself even when using an append-only access key like you can use on borgbase.com. + +For example: +```bash +borgmatic list --archive latest --no-color | grep root/.borgmatic/mysql_databases/localhost/ +``` + +Note that the `localhost` part of the path in this case is fully dependent on how your config looks. If you connect to an external database from this host, change to the address in config accordingly. ## Logging