about summary refs log tree commit diff
path: root/hosts/common/server/grafana.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-07 07:43:14 -0800
committerFranck Cuny <franck@fcuny.net>2022-03-07 07:43:14 -0800
commit6aa452f49fcf27791327372b4aefe8f38fe8351f (patch)
treee5e0e286071eef9d3b6fa6bea2032270fd57b93c /hosts/common/server/grafana.nix
parentgrafana: backup the data directory (diff)
downloadworld-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 'hosts/common/server/grafana.nix')
-rw-r--r--hosts/common/server/grafana.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/common/server/grafana.nix b/hosts/common/server/grafana.nix
index 61445a8..474c4e2 100644
--- a/hosts/common/server/grafana.nix
+++ b/hosts/common/server/grafana.nix
@@ -32,6 +32,7 @@
       paths = [ "/var/lib/grafana/data" ];
       repository = "/data/slow/backups/systems";
       passwordFile = config.age.secrets.restic-repo-systems.path;
+      timerConfig = { OnCalendar = "00:05"; };
       initialize = true;
       extraBackupArgs = [ "--tag grafana" ];
       pruneOpts = [ "--keep-daily 7" "--keep-weekly 4" ];