diff options
author | Alex <alex@adnab.me> | 2024-04-03 12:15:18 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2024-04-03 12:15:18 +0000 |
commit | e5838b4837f22308daf92ea75bdc1ebb7c3f31e5 (patch) | |
tree | c8fa65b829e897b27cec17c95128d98b31e4417c /doc | |
parent | ecf641d88c264f7278d13a6d988288feb24a5dfe (diff) | |
parent | 87dfaf2eb9d345bb5d4508248c46cc713df75e64 (diff) | |
download | garage-e5838b4837f22308daf92ea75bdc1ebb7c3f31e5.tar.gz garage-e5838b4837f22308daf92ea75bdc1ebb7c3f31e5.zip |
Merge pull request '[doc-units] document how interval value is parsed' (#795) from doc-units into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/795
Diffstat (limited to 'doc')
-rw-r--r-- | doc/book/reference-manual/configuration.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/book/reference-manual/configuration.md b/doc/book/reference-manual/configuration.md index 1ac2051e..39936094 100644 --- a/doc/book/reference-manual/configuration.md +++ b/doc/book/reference-manual/configuration.md @@ -376,10 +376,12 @@ if geographical replication is used. If this value is set, Garage will automatically take a snapshot of the metadata DB file at a regular interval and save it in the metadata directory. -This can allow to recover from situations where the metadata DB file is corrupted, -for instance after an unclean shutdown. -See [this page](@/documentation/operations/recovering.md#corrupted_meta) for details. +This parameter can take any duration string that can be parsed by +the [`parse_duration`](https://docs.rs/parse_duration/latest/parse_duration/#syntax) crate. +Snapshots can allow to recover from situations where the metadata DB file is +corrupted, for instance after an unclean shutdown. See [this +page](@/documentation/operations/recovering.md#corrupted_meta) for details. Garage keeps only the two most recent snapshots of the metadata DB and deletes older ones automatically. |