From 472deaafed26610f15d8b46fdb6470a765ca6f93 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 2 Aug 2023 10:18:13 +0900 Subject: feat(services/backup): use static backup for pgsql --- modules/services/backup.nix | 2 +- systems/cobalt/default.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/backup.nix b/modules/services/backup.nix index 41d2329..9770b43 100644 --- a/modules/services/backup.nix +++ b/modules/services/backup.nix @@ -74,7 +74,7 @@ in # use borg 1.0+ on rsync.net extraCreateArgs = "--verbose --stats --checkpoint-interval 600"; compression = "auto,zstd"; - startAt = "daily"; + startAt = "*-*-* 03:00:00"; # pgsql backup runs on 01:15:00 persistentTimer = true; }; }; diff --git a/systems/cobalt/default.nix b/systems/cobalt/default.nix index fa1cd8b..fabc687 100644 --- a/systems/cobalt/default.nix +++ b/systems/cobalt/default.nix @@ -182,6 +182,9 @@ in exclude = [ # Rust build files "/home/**/target" + + # Static backup created in /persist/var/backup/postgresql + "/persist/var/lib/postgresql" ]; repo = "20963@hk-s020.rsync.net:rolling/exotic/cobalt"; -- cgit 1.4.1