lets try that again

This commit is contained in:
Nathan McCarty 2022-06-10 19:35:44 -04:00
parent 39dbf3e308
commit 416410579a
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 24 additions and 16 deletions

View File

@ -88,8 +88,16 @@
monthly = -1; # Keep unlimited monthly backups monthly = -1; # Keep unlimited monthly backups
}; };
}; };
postgres = { postgres =
dumpCommand = "su postgres -c pg_dumpall"; let dumper = pkgs.writeScript "pg-dumper"
''
#!/usr/bin/env bash
su -c postgres pg_dumpall
'';
in
{
dumpCommand = dumper;
repo = "de1955@de1955.rsync.net:databases/oracles/postgres"; repo = "de1955@de1955.rsync.net:databases/oracles/postgres";
encryption = { encryption = {
mode = "repokey-blake2"; mode = "repokey-blake2";