From 5913220ada44ada94ed358ee92eecac81089f20f Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 30 Apr 2024 12:56:07 +0300 Subject: [PATCH] Exclude postgres DB when backing up /var/lib --- hosts/cube/restic/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/cube/restic/default.nix b/hosts/cube/restic/default.nix index 247f849..882297a 100644 --- a/hosts/cube/restic/default.nix +++ b/hosts/cube/restic/default.nix @@ -9,7 +9,8 @@ systemConfiguration { repository = "sftp:backup@disk:${config.networking.hostName}-varlib"; - paths = [ "/var/lib" ]; + paths = [ "/var/lib" ]; + exclude = [ "/var/lib/postgresql" ]; # TODO timerConfig = { OnCalendar = "daily";