summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2021-06-04 17:34:26 +0200
committerRobert Hensing <robert@roberthensing.nl>2021-06-05 15:09:27 +0200
commit81c8189a841728a813bcde8604b80427fcf33522 (patch)
tree97bc681294e3cd43396fab963525ad6305cfa03c /pkgs/development/python-modules/rangehttpserver
parentc586e42763e0f093d16b4b655759cb340171ad42 (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions