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