Kaynağa Gözat

Enhanced docs with info on fetching mysql database size

Merge pull request #46 from Jelle-SamsonIT/patch-3
Dan Helfman 2 yıl önce
ebeveyn
işleme
8d860ea02c
1 değiştirilmiş dosya ile 13 ekleme ve 0 silme
  1. 13 0
      docs/how-to/inspect-your-backups.md

+ 13 - 0
docs/how-to/inspect-your-backups.md

@@ -91,6 +91,19 @@ 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 query the size of your sql backups from the host you're backing up itself. This works 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 the regex is dependent on how your config looks. If you connect to an external database your config, change to the regexp accordingly because the path will be different. 
+
+An additional caveat is that when you specify "all" for your database config, there will be one file named "all.sql" in the localhost folder. 
+Specify your database names in config individually to have one file per database.
 
 ## Logging