From 1aeef56e6ddc86dd559844a77054b3c62ae8f1c9 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin <quentinduchemin@tuta.io> Date: Thu, 11 Jun 2020 20:45:16 +0200 Subject: [PATCH] [DBBackup] Don't exit on backup failure --- pica-db-backup/run.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pica-db-backup/run.sh b/pica-db-backup/run.sh index 12486ddc..8a4fac1a 100755 --- a/pica-db-backup/run.sh +++ b/pica-db-backup/run.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# DB_TYPE : MYSQL|POSTGRES +# DB_TYPE : MYSQL|POSTGRES|MONGODB ############################### # Needed env for each DB type # @@ -84,7 +84,6 @@ for (( i=0; i < $NB_CALLS; i++ )); do EXTRA_OPTS=${MYSQL_EXTRA_OPTS_ARRAY[i]} \ BACKUP_FOLDER="/backup/${MYSQL_BACKUP_FOLDER_ARRAY[i]}/" \ /scripts/mysql/mysql-run.sh - [ $? == 1 ] && exit 1 done #Execute PostgreSQL backups @@ -102,7 +101,6 @@ for (( i=0; i < $NB_CALLS; i++ )); do EXTRA_OPTS=${POSTGRES_EXTRA_OPTS_ARRAY[i]} \ BACKUP_FOLDER="/backup/${POSTGRES_BACKUP_FOLDER_ARRAY[i]}/" \ /scripts/postgresql/postgres-run.sh - [ $? == 1 ] && exit 1 done #Execute MongoDB backups @@ -119,7 +117,6 @@ for (( i=0; i < $NB_CALLS; i++ )); do CRON_TIME=${MONGO_CRON_TIME_ARRAY[i]} \ BACKUP_FOLDER="/backup/${MONGO_BACKUP_FOLDER_ARRAY[i]}/" \ /scripts/mongodb/mongo-run.sh - [ $? == 1 ] && exit 1 done exec cron -f -- GitLab