diff options
| author | Robert Hensing <robert@roberthensing.nl> | 2021-06-04 17:34:26 +0200 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2021-06-05 15:09:27 +0200 |
| commit | 81c8189a841728a813bcde8604b80427fcf33522 (patch) | |
| tree | 97bc681294e3cd43396fab963525ad6305cfa03c /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | c586e42763e0f093d16b4b655759cb340171ad42 (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/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
