From 0c538fbf86d6c3cbfebfc5119820b8a669d66f6e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 9 Aug 2021 20:01:33 +0200 Subject: [PATCH] services: backup postgres to restic --- services/postgresql-backup.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/postgresql-backup.nix b/services/postgresql-backup.nix index e8c5381..94a60ef 100644 --- a/services/postgresql-backup.nix +++ b/services/postgresql-backup.nix @@ -12,11 +12,11 @@ in { config = mkIf cfg.enable { services.postgresqlBackup = { enable = true; - # Borg backup starts at midnight so create DB dump just before + # Restic backup starts at midnight so create DB dump just before startAt = "*-*-* 23:30:00"; }; - my.services.borg-backup = mkIf cfg.enable { + my.services.restic-backup = mkIf cfg.enable { paths = [ "/var/backup/postgresql" ]; # no need to store previously backed up files, as borg does the snapshoting