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 = [
|
imports = [
|
||||||
../../common
|
../../common
|
||||||
../../profiles/headless.nix
|
../../profiles/headless.nix
|
||||||
|
@ -30,10 +30,9 @@
|
||||||
|
|
||||||
backupPrepareCommand = ''
|
backupPrepareCommand = ''
|
||||||
umask 0077
|
umask 0077
|
||||||
rm -f -- ${pgBackup}
|
rm -f -- ${pgBackup}
|
||||||
${lib.getExe' config.services.postgresql.package "pg_dumpall"} \
|
${lib.getExe pkgs.su} -c '${lib.getExe' config.services.postgresql.package "pg_dumpall"}' \
|
||||||
-U ${config.services.postgresql.superUser} \
|
${config.services.postgresql.superUser} >${pgBackup}
|
||||||
-f ${pgBackup}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
backupCleanupCommand = ''
|
backupCleanupCommand = ''
|
||||||
|
|
Loading…
Reference in a new issue