From 489699e413b5e44751630f99855199d1f5fc9d52 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 13 Sep 2024 09:45:34 +0300 Subject: [PATCH] internal ip --- migration.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migration.sh b/migration.sh index a77c249..e157f2f 100644 --- a/migration.sh +++ b/migration.sh @@ -57,8 +57,7 @@ db_backup() { send_backup() { if [[ "$EVENT_STORE" == 0 ]] || [[ "$EVENT_STORE" == 1 ]]; then - echo "send dump to the destination" - echo Sending db backup to destination server + 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:/var/backups cd - else echo "no backup, nothing to send"