nixpkgs/nixos/modules/services/backup
Robert Hensing 809cc5bf28 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.

(cherry picked from commit 81c8189a841728a813bcde8604b80427fcf33522)
2021-07-07 23:45:22 +00:00
..
automysqlbackup.nix
bacula.nix
borgbackup.nix nixos/users: require one of users.users.name.{isSystemUser,isNormalUser} 2021-04-14 20:40:00 +02:00
borgbackup.xml
borgmatic.nix borgmatic: init at 1.5.12 2021-03-04 13:01:03 +08:00
duplicati.nix
duplicity.nix nixos/duplicity: fix typo in subcommand 2021-06-27 16:38:12 +00:00
mysql-backup.nix treewide: Fix mysql alias deprecation breakage 2021-06-05 17:11:40 +00:00
postgresql-backup.nix nixos/postgresqlBackup: Only replace backup when successful 2021-07-07 23:45:22 +00:00
postgresql-wal-receiver.nix
restic-rest-server.nix
restic.nix restic: allow prune without backup 2021-03-21 18:47:52 -07:00
rsnapshot.nix
sanoid.nix
syncoid.nix
tarsnap.nix
tsm.nix
zfs-replication.nix
znapzend.nix
zrepl.nix nixos/zrepl: init 2021-02-24 11:56:02 -08:00