Browse Source

backup name

master
M.Goldshteyn 1 year ago
parent
commit
205e6aac91
  1. 2
      migration.sh

2
migration.sh

@ -36,7 +36,7 @@ send_backup() { @@ -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

Loading…
Cancel
Save