{"id":2216,"date":"2025-10-15T19:33:08","date_gmt":"2025-10-15T10:33:08","guid":{"rendered":"https:\/\/rfsec.ddns.net\/db\/?p=2216"},"modified":"2025-10-26T19:37:42","modified_gmt":"2025-10-26T10:37:42","slug":"wordpress%e3%81%ae%e3%82%b3%e3%83%b3%e3%83%86%e3%83%b3%e3%83%84%e3%82%92%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3%e3%81%a7%e5%88%a5%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc","status":"publish","type":"post","link":"https:\/\/rfsec.ddns.net\/db\/?p=2216","title":{"rendered":"WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u30b3\u30d4\u30fc"},"content":{"rendered":"\n<p>WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u30b3\u30d4\u30fc\u3059\u308b\u306b\u306f\u3001\u4e3b\u306b\u4ee5\u4e0b\u306e\u5de5\u7a0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u65e7\u30b5\u30fc\u30d0\u30fc\u306eWordPress\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH\u3067\u65e7\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001WordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3002<\/li>\n\n\n\n<li>MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3002<\/li>\n\n\n\n<li>\uff4d<code>ysqldump -u \u30e6\u30fc\u30b6\u30fc\u540d -p \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d > ~\/backup.sql<\/code><\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306eSQL\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u3059\u308b\u3053\u3068\u3082\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>tar -czvf backup_db.tar.gz ~\/backup.sql<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2. WordPress\u30d5\u30a1\u30a4\u30eb\uff08\u30c6\u30fc\u30de\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306a\u3069\uff09\u3092\u5727\u7e2e\u3057\u3066\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u3002<\/li>\n\n\n\n<li><code>tar -czvf wordpress_files.tar.gz \/path\/to\/wordpress\/<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u5727\u7e2e\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3068WordPress\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u30b5\u30fc\u30d0\u30fc\u3078\u8ee2\u9001<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>scp\u30b3\u30de\u30f3\u30c9\u3067\u65b0\u30b5\u30fc\u30d0\u30fc\u306b\u8ee2\u9001\u3002<\/li>\n\n\n\n<li><code>scp wordpress_files.tar.gz user@new-server:\/path\/to\/destination scp backup_db.tar.gz user@new-server:\/path\/to\/destination<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u65b0\u30b5\u30fc\u30d0\u30fc\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u65b0\u30b5\u30fc\u30d0\u30fc\u306bSSH\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3002<\/li>\n\n\n\n<li><code>tar -xzvf wordpress_files.tar.gz -C \/path\/to\/wordpress\/ tar -xzvf backup_db.tar.gz<\/code><\/li>\n\n\n\n<li>MySQL\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3002<\/li>\n\n\n\n<li><code>mysql -u \u30e6\u30fc\u30b6\u30fc\u540d -p \u65b0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d &lt; backup.sql<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">5. wp-config.php\u306e\u8a2d\u5b9a\u3084URL\u306e\u66f8\u304d\u63db\u3048<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>wp-config.php\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u60c5\u5831\u3092\u65b0\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u7de8\u96c6\u3002<\/li>\n\n\n\n<li>\u5fc5\u8981\u306b\u5fdc\u3058\u3066WP-CLI\u3067\u30c9\u30e1\u30a4\u30f3\u540d\u306a\u3069\u3092\u7f6e\u63db\u3002<\/li>\n\n\n\n<li><code>wp search-replace '\u65e7\u30c9\u30e1\u30a4\u30f3' '\u65b0\u30c9\u30e1\u30a4\u30f3' --all-tables<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3084\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u30ea\u30bb\u30c3\u30c8\u306a\u3069\u3092\u5b9f\u65bd\u3057\u3001\u52d5\u4f5c\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u57fa\u672c\u7684\u306a\u624b\u9806\u3067\u3001WP-CLI\uff08WordPress\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\uff09\u3092\u5229\u7528\u3059\u308b\u3068\u3088\u308a\u4fbf\u5229\u3067\u3059\u3002WP-CLI\u3092\u7528\u3044\u305f\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30fb\u30a4\u30f3\u30dd\u30fc\u30c8\u3084\u7f6e\u63db\u3082\u53ef\u80fd\u3067\u3001\u81ea\u52d5\u5316\u3057\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u306e\u624b\u9806\u3067\u3001WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u5225\u30b5\u30fc\u30d0\u30fc\u306b\u5b89\u5168\u304b\u3064\u5b8c\u5168\u306b\u79fb\u884c\u3067\u304d\u307e\u3059\u3002<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/blogvault.net\/how-to-migrate-wordpress-site\/\"><\/a>\u200b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u30b3\u30d4\u30fc\u3059\u308b\u306b\u306f\u3001\u4e3b\u306b\u4ee5\u4e0b\u306e\u5de5\u7a0b\u306b\u306a\u308a\u307e\u3059\u3002 1. \u65e7\u30b5\u30fc\u30d0\u30fc\u306eWordPress\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8 2. WordPress\u30d5\u30a1\u30a4\u30eb\uff08\u30c6\u30fc\u30de\u3001\u30d7\u30e9\u30b0\u30a4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2216","post","type-post","status-publish","format-standard","hentry","category-network"],"featured_image_src":null,"author_info":{"display_name":"mars","author_link":"https:\/\/rfsec.ddns.net\/db\/?author=1"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/2216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2216"}],"version-history":[{"count":2,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/2216\/revisions"}],"predecessor-version":[{"id":2220,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/2216\/revisions\/2220"}],"wp:attachment":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}