feat: fail backup on script errors

This commit is contained in:
Michael Mandl 2022-10-09 14:42:33 +02:00
parent a02735d982
commit ede6cd537e
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
4 changed files with 8 additions and 8 deletions

View file

@ -1,13 +1,13 @@
#!/usr/bin/env sh
if [[ -n "$DO_FTP_BACKUP" ]]; then
sh /usr/local/etc/urbackup/ftp_backup.sh
sh /usr/local/etc/urbackup/ftp_backup.sh || exit 1
fi
if [[ -n "$DO_MYSQL_BACKUP" ]]; then
sh /usr/local/etc/urbackup/mysql_backup.sh
sh /usr/local/etc/urbackup/mysql_backup.sh || exit 1
fi
if [[ -n "$DO_POSTGRES_BACKUP" ]]; then
sh /usr/local/etc/urbackup/postgres_backup.sh
sh /usr/local/etc/urbackup/postgres_backup.sh || exit 1
fi