From b4df0bcde77e2f338e237a71c1169276863e097f Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 09:45:36 +0300 Subject: [PATCH] backup name --- migration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.sh b/migration.sh index ecbe2b2..806e2d8 100644 --- a/migration.sh +++ b/migration.sh @@ -33,7 +33,7 @@ db_backup() { fi } send_backup() { - if [[ "$EVENT_STORE" == 0 ]] or [[ "$EVENT_STORE" == 1 ]]; then + if [[ "$EVENT_STORE" == 0 ]] || [[ "$EVENT_STORE" == 1 ]]; then echo "send dump to the destination" echo Sending db backup to destination server cd /var/backups/ && yes | sshpass -p "$DESTINATION_DATABASE_PASSWORD" scp -P $DESTINATION_DATABASE_PORT -o StrictHostKeyChecking=no DB_BACKUP $DESTINATION_DATABASE_USER@$DESTINATION_DATABASE_IP:~/