3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
Robert Hensing 81c8189a84 nixos/postgresqlBackup: Only replace backup when successful
Previously, a failed backup would always overwrite ${db}.sql.gz,
because the bash `>` redirect truncates the file; even if the
backup was going to fail.
On the next run, the ${db}.prev.sql.gz backup would be
overwritten by the bad ${db}.sql.gz.

Now, if the backup fails, the ${db}.in-progress.sql.gz is in an
unknown state, but ${db}.sql.gz will not be written.
On the next run, ${db}.prev.sql.gz (our only good backup) will
not be overwritten because ${db}.sql.gz does not exist.
2021-06-05 15:09:27 +02:00
..
config Merge pull request #101071 from ju1m/apparmor 2021-04-24 11:24:26 +00:00
hardware maintainers: rename metadark -> kira-bruneau (#124035) 2021-05-22 16:47:40 +02:00
i18n/input-method input methods: add kime 2021-04-19 03:05:07 +09:00
installer iso-image: Improve disk detection 2021-05-22 20:04:05 -07:00
misc nixos/monero: use isSystemUser = true 2021-05-08 02:13:25 +02:00
profiles Merge pull request #85073 from hyperfekt/systemd-pstore 2021-05-17 00:00:52 +02:00
programs Merge pull request #123926 from pschyska/master 2021-05-23 18:08:46 +00:00
security Merge pull request #124991 from ju1m/apparmor 2021-06-01 15:26:30 +02:00
services nixos/postgresqlBackup: Only replace backup when successful 2021-06-05 15:09:27 +02:00
system nixos/luksroot: add bypassWorkqueues (#118114) 2021-05-26 09:43:38 -04:00
tasks nixos/filesystems: condition mount-pstore.service on unmounted /sys/fs/pstore 2021-05-21 17:49:23 +02:00
testing treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
virtualisation Revert "nixos/containers: add storage.conf" 2021-06-03 13:56:17 +10:00
module-list.nix plausible: init at 1.3.0 2021-06-02 19:21:31 +09:00
rename.nix quagga: remove 2021-04-22 12:48:48 +02:00