#!/bin/bash REMOTE_DOMAIN=site-wordpress.cap.wpstudio.ru LOCAL_DOMAIN=site-wordpress.local.wpstudio.ru wp search-replace "https://${REMOTE_DOMAIN}" "http://${LOCAL_DOMAIN}" wp_options wp_posts wp_postmeta --report-changed-only=true wp search-replace "${REMOTE_DOMAIN}" "${LOCAL_DOMAIN}" wp_options wp_posts wp_postmeta --report-changed-only=true