ソースを参照

Clarify database documentation about excluding named pipes and character/block devices to prevent hangs.

Dan Helfman 5 年 前
コミット
2ac58670d5
2 ファイル変更14 行追加0 行削除
  1. 2 0
      NEWS
  2. 12 0
      docs/how-to/backup-your-databases.md

+ 2 - 0
NEWS

@@ -1,5 +1,7 @@
 1.5.9.dev0
 1.5.9.dev0
  * #339: Fix for intermittent timing-related test failure of logging function.
  * #339: Fix for intermittent timing-related test failure of logging function.
+ * Clarify database documentation about excluding named pipes and character/block devices to prevent
+   hangs.
 
 
 1.5.8
 1.5.8
  * #336: Fix for traceback when running Cronitor, Cronhub, and PagerDuty monitor hooks.
  * #336: Fix for traceback when running Cronitor, Cronhub, and PagerDuty monitor hooks.

+ 12 - 0
docs/how-to/backup-your-databases.md

@@ -34,6 +34,7 @@ in the `location` section of borgmatic's configuration.
 Also note that using a database hook implicitly enables both the
 Also note that using a database hook implicitly enables both the
 `read_special` and `one_file_system` configuration settings (even if they're
 `read_special` and `one_file_system` configuration settings (even if they're
 disabled in your configuration) to support this dump and restore streaming.
 disabled in your configuration) to support this dump and restore streaming.
+See Limitations below for more on this.
 
 
 Here's a more involved example that connects to remote databases:
 Here's a more involved example that connects to remote databases:
 
 
@@ -167,6 +168,11 @@ borgmatic's own configuration file. So include your configuration file in
 backups to avoid getting caught without a way to restore a database.
 backups to avoid getting caught without a way to restore a database.
 3. borgmatic does not currently support backing up or restoring multiple
 3. borgmatic does not currently support backing up or restoring multiple
 databases that share the exact same name on different hosts.
 databases that share the exact same name on different hosts.
+4. Because database hooks implicitly enable the `read_special` configuration
+setting to support dump and restore streaming, you'll need to ensure that any
+special files are excluded from backups (named pipes, block devices, and
+character devices). Common directories to exclude are `/dev` and `/run`, but
+that may not be exhaustive.
 
 
 
 
 ### Manual restoration
 ### Manual restoration
@@ -205,6 +211,12 @@ hooks:
           options: "--single-transaction --quick"
           options: "--single-transaction --quick"
 ```
 ```
 
 
+### borgmatic hangs during backup
+
+See Limitations above about `read_special`. You may need to exclude certain
+paths with named pipes, block devices, or character devices. Common
+directories to exclude are `/dev` and `/run`, but that may not be exhaustive.
+
 
 
 ## Related documentation
 ## Related documentation