Browse Source

internal ip

master
M.Goldshteyn 1 year ago
parent
commit
489699e413
  1. 3
      migration.sh

3
migration.sh

@ -57,8 +57,7 @@ db_backup() {
send_backup() { send_backup() {
if [[ "$EVENT_STORE" == 0 ]] || [[ "$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"
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 /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 - cd -
else echo "no backup, nothing to send" else echo "no backup, nothing to send"

Loading…
Cancel
Save