diff options
author | Franck Cuny <franck@fcuny.net> | 2022-03-07 07:43:14 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-03-07 07:43:14 -0800 |
commit | 6aa452f49fcf27791327372b4aefe8f38fe8351f (patch) | |
tree | e5e0e286071eef9d3b6fa6bea2032270fd57b93c /hosts/common/server/prometheus.nix | |
parent | grafana: backup the data directory (diff) | |
download | world-6aa452f49fcf27791327372b4aefe8f38fe8351f.tar.gz |
backups: spread them so they don't clash
If they start running at the same time, they won't be able to succeed since there's a global lock on the repository.
Diffstat (limited to '')
-rw-r--r-- | hosts/common/server/prometheus.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/common/server/prometheus.nix b/hosts/common/server/prometheus.nix index d097cff..3c4ab94 100644 --- a/hosts/common/server/prometheus.nix +++ b/hosts/common/server/prometheus.nix @@ -62,6 +62,7 @@ in { repository = "/data/slow/backups/systems"; passwordFile = config.age.secrets.restic-repo-systems.path; initialize = true; + timerConfig = { OnCalendar = "00:25"; }; extraBackupArgs = [ "--tag prometheus" ]; pruneOpts = [ "--keep-daily 7" "--keep-weekly 4" ]; }; |