Просмотр исходного кода

Include a sample borgmatic configuration file in the documentation (#119).

Dan Helfman 6 лет назад
Родитель
Сommit
290e969a22
4 измененных файлов с 30 добавлено и 6 удалено
  1. 1 0
      NEWS
  2. 6 1
      README.md
  3. 5 5
      docs/how-to/set-up-backups.md
  4. 18 0
      docs/reference/configuration.md

+ 1 - 0
NEWS

@@ -1,5 +1,6 @@
 1.2.16.dev0
  * Refactor documentation into multiple separate pages for clarity and findability.
+ * #119: Include a sample borgmatic configuration file in the documentation.
 
 1.2.15
  * #127: Remove date echo from schema example, as it's not a substitute for real logging.

+ 6 - 1
README.md

@@ -56,7 +56,7 @@ href="https://asciinema.org/a/203761" target="_blank">screencast</a>.
 
 ## How-to guides
 
- * [Set up backups with borgmatic](docs/how-to/set-up-backups.md) \<-- *Start here!*
+ * [Set up backups with borgmatic](docs/how-to/set-up-backups.md)  *Start here!*
  * [Make per-application backups](docs/how-to/make-per-application-backups.md)
  * [Deal with very large backups](docs/how-to/deal-with-very-large-backups.md)
  * [Inspect your backups](docs/how-to/inspect-your-backups.md)
@@ -65,6 +65,11 @@ href="https://asciinema.org/a/203761" target="_blank">screencast</a>.
  * [Develop on borgmatic](docs/how-to/develop-on-borgmatic.md)
 
 
+## Reference guides
+
+ * [borgmatic configuration reference](docs/reference/configuration.md)
+
+
 ## Support and contributing
 
 ### Issues

+ 5 - 5
docs/how-to/set-up-backups.md

@@ -48,11 +48,10 @@ default). You should edit the file to suit your needs, as the values are
 representative. All fields are optional except where indicated, so feel free
 to ignore anything you don't need.
 
-You can also have a look at the [full configuration
-schema](https://projects.torsion.org/witten/borgmatic/src/master/borgmatic/config/schema.yaml)
-for the authoritative set of all configuration options. This is handy if
-borgmatic has added new options since you originally created your
-configuration file.
+You can also get the same sample configuration file from the [configuration
+reference](../../docs/reference/configuration.md), the authoritative set of
+all configuration options. This is handy if borgmatic has added new options
+since you originally created your configuration file.
 
 
 ### Encryption
@@ -177,3 +176,4 @@ it.
  * [Make per-application backups](../../docs/how-to/make-per-application-backups.md)
  * [Deal with very large backups](../../docs/how-to/deal-with-very-large-backups.md)
  * [Inspect your backups](../../docs/how-to/inspect-your-backups.md)
+ * [borgmatic configuration reference](../../docs/reference/configuration.md)

+ 18 - 0
docs/reference/configuration.md

@@ -0,0 +1,18 @@
+---
+title: borgmatic configuration reference
+---
+## Configuration file
+
+Here is a full sample borgmatic configuration file including all available options: 
+
+```yaml
+{% include borgmatic/config.yaml %}
+```
+
+Note that you can also [download this configuration
+file](../../docs/reference/config.yaml) for use locally.
+
+
+## Related documentation
+
+ * [Set up backups with borgmatic](../../docs/how-to/set-up-backups.md)