database backup refining

This commit is contained in:
2025-10-17 20:03:56 -05:00
parent 6d3ae434a5
commit 06ec73de0b
3 changed files with 6 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ in {
# add to backups
system.backups.baks = {
${service} = {paths = [cfg.data_dir "/var/lib/redis-immich"];};
${service} = {paths = [cfg.data_dir "/var/lib/redis-immich" "/var/backups/postgresql/immich.sql.zst"];};
};
};
}

View File

@@ -117,7 +117,7 @@ in
lib.mapAttrsToList (srv_name: cfg:
{
name = srv_name; # attribute key
value = { paths = [ cfg.data_dir ]; }; # attribute value
value = { paths = [ cfg.data_dir "/var/backups/${service}_db.zst" ]; }; # attribute value
}
) servers
);