@ -32,10 +32,13 @@ PLATFORM_DIRS="conf,lib,opencv,webapp,scripts,SERVER_config.txt,bin/server,"
IFS=',' read -r -a array <<< "$PLATFORM_DIRS"
for folder in "${array[@]}"; do
yes | sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT -o StrictHostKeyChecking=no" -avz --ignore-existing $SOURCE_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/$folder $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/
yes | sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT -o StrictHostKeyChecking=no" -avz --ignore-existing $SOURCE_PLATFORM_PATH/$folder $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/
done
}
download_platform
DB_BACKUP=$SOURCE_DB_NAME.migration.$DATE.sql
echo "backup name:" $DB_BACKUP
db_backup() {