You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

6 lines
347 B

#!/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