mysql-backup-sidecar icon indicating copy to clipboard operation
mysql-backup-sidecar copied to clipboard

Backup.sh should return error code on failures

Open nalt opened this issue 2 years ago • 1 comments
trafficstars

If the backup fails, backup.sh returns an error code of 0. Instead, it should return an error code.

In case of failed backups, the following script rotate.sh should probably not remove any old backups, since it cannot detect corrupted ones. It should rather wait until the backup works again.

nalt avatar Aug 15 '23 12:08 nalt

thank @nalt for the observation. full ack here as well, do you want to contribute a fix for it? cheers, Wolfgang

woolfg avatar Aug 15 '23 14:08 woolfg