Compare commits
2 commits
6aa131b7d1
...
1881cb0ff2
Author | SHA1 | Date | |
---|---|---|---|
1881cb0ff2 | |||
c8264b3bf0 |
1 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, ... }: {
|
||||
{ lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
../../common
|
||||
../../profiles/headless.nix
|
||||
|
@ -30,10 +30,9 @@
|
|||
|
||||
backupPrepareCommand = ''
|
||||
umask 0077
|
||||
rm -f -- ${pgBackup}
|
||||
${lib.getExe' config.services.postgresql.package "pg_dumpall"} \
|
||||
-U ${config.services.postgresql.superUser} \
|
||||
-f ${pgBackup}
|
||||
rm -f -- ${pgBackup}
|
||||
${lib.getExe pkgs.su} -c '${lib.getExe' config.services.postgresql.package "pg_dumpall"}' \
|
||||
${config.services.postgresql.superUser} >${pgBackup}
|
||||
'';
|
||||
|
||||
backupCleanupCommand = ''
|
||||
|
|
Loading…
Reference in a new issue