Correct the scritp for restic-postgres

This commit is contained in:
Andreas Zweili 2022-11-12 21:36:27 +01:00
parent 59eb620f78
commit c58ba04088
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
--exclude-file=${custom.inputs.self}/modules/restic/excludes.txt \
--tag ${tag} ${path}
sudo -u postgres ${pkgs.postgresql}/bin/pg_dumpall | \
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dumpall | \
${pkgs.restic}/bin/restic backup \
--tag postgres \
--stdin \
@ -48,7 +48,7 @@
--keep-yearly 75
${pkgs.restic}/bin/restic forget \
--tag mariadb \
--tag postgres \
--host ${config.networking.hostName} \
--keep-daily 7 \
--keep-weekly 5 \