From 205e6aac9130b1cd70ebe3152ab0a0c6ef802a74 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 09:49:49 +0300 Subject: [PATCH] backup name --- migration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.sh b/migration.sh index 27df074..77ca636 100644 --- a/migration.sh +++ b/migration.sh @@ -36,7 +36,7 @@ send_backup() { 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:~/ + 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:~/ cd - else echo "no backup, nothing to send" && exit fi