feat: fail backup on script errors
This commit is contained in:
parent
a02735d982
commit
ede6cd537e
4 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue