Compare commits

..

2 commits

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: {
{ lib, config, ... }: {
imports = [
../../common
../../profiles/headless.nix
@ -31,8 +31,9 @@
backupPrepareCommand = ''
umask 0077
rm -f -- ${pgBackup}
${lib.getExe pkgs.su} -c '${lib.getExe' config.services.postgresql.package "pg_dumpall"}' \
${config.services.postgresql.superUser} >${pgBackup}
${lib.getExe' config.services.postgresql.package "pg_dumpall"} \
-U ${config.services.postgresql.superUser} \
-f ${pgBackup}
'';
backupCleanupCommand = ''