+ replace to local domain quick script for wp

This commit is contained in:
2022-07-10 20:16:24 +03:00
parent a54aa8afc4
commit 6968950560

View File

@ -0,0 +1,6 @@
#!/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