{"id":468,"date":"2016-10-20T06:09:45","date_gmt":"2016-10-19T21:09:45","guid":{"rendered":"http:\/\/www.ranran.mydns.jp\/blog\/?p=468"},"modified":"2016-10-22T22:56:55","modified_gmt":"2016-10-22T13:56:55","slug":"%e6%97%a2%e5%ad%98%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%aeconcrete5%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92docker%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%81%ab%e7%a7%bb%e8%a8%ad%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.ranran.mydns.jp\/blog\/?p=468","title":{"rendered":"\u65e2\u5b58\u30b5\u30fc\u30d0\u30fc\u306eConcrete5\u30c7\u30fc\u30bf\u3092Docker\u30b3\u30f3\u30c6\u30ca\u306b\u79fb\u8a2d\u3059\u308b"},"content":{"rendered":"<p>Concrete5\u306e\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3084\u308a\u65b9\u306fConcrete5\u516c\u5f0f\u306e\u300c<a href=\"http:\/\/concrete5-japan.org\/help\/faq\/how-to-restore\/\" target=\"_blank\">concrete5 \u30b5\u30a4\u30c8\u3092\u5fa9\u65e7\uff08\u30ea\u30b9\u30c8\u30a2\uff09\u3059\u308b\u65b9\u6cd5<\/a>\u300d\u3092\u53c2\u8003\u306b\u3059\u308c\u3070\u3059\u3093\u306a\u308a\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\uff11\uff0e\u79fb\u8a2d\u5143\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u79fb\u8a2d\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# cd \/var\/www\/html\/concrete\r\n\/\/ \u30c7\u30fc\u30bf\u683c\u7d0d\u30d5\u30a9\u30eb\u30c0\u3092tar\u3067\u56fa\u3081\u308b\r\n# tar cvf concrete-content.tar blocks\/ css\/ elements\/ files\/ helpers\/ jobs\/ js\/ languages\/ libraries\/ mail\/ modules\/ packages\/ page_types\/ single_pages\/ sitemap.xml themes\/ tooles\/ updates\/\r\n\/\/SQL\u30c7\u30fc\u30bf\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\r\n# mysqldump -u {\u30e6\u30fc\u30b6\u30fc\u540d} -p {\u30d1\u30b9\u30ef\u30fc\u30c9} {\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d} &gt;&gt; concrete-export.sql\r\n<\/pre>\n<p>\uff12\uff0eDocker\u30b3\u30f3\u30c6\u30ca\u306b\u53cd\u6620\u3055\u305b\u308b<\/p>\n<p style=\"padding-left: 30px;\">\u30b3\u30f3\u30c6\u30f3\u30c4\u30d5\u30a1\u30a4\u30eb\u3092Docker\u30b3\u30f3\u30c6\u30ca\u306b\u53cd\u6620\u3055\u305b\u308b\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u203b \u30b3\u30f3\u30c6\u30ca\u540d\uff1aconcrete<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/\/ SCP\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\r\n# cd \/tmp\r\n# scp {\u79fb\u8a2d\u5143\u30b5\u30fc\u30d0\u30fcIP}:\/var\/www\/html\/concrete\/concrete-content.tar concrete-content.tar\r\n\/\/ concrete\u30b3\u30f3\u30c6\u30ca\u5185\u306bconcrete-content.tar\u3092\u30b3\u30d4\u30fc\r\n# docker cp concrete-content.tar concrete:\/var\/www\/html\r\n\/\/ tar\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\r\n# docker exec concrete tar xvf concrete-content.tar\r\n# docker exec concrete \/bin\/bash -c &quot;chown www-data:www-data -R \/var\/www\/html&quot;\r\n<\/pre>\n<p style=\"padding-left: 30px;\">\u8a18\u4e8b\u30c7\u30fc\u30bf\u3092MySQL\u30b3\u30f3\u30c6\u30ca\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u203b \u30b3\u30f3\u30c6\u30ca\u540d\uff1amysql<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/\/ SCP\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\r\n# cd \/tmp\r\n# scp {\u79fb\u8a2d\u5143\u30b5\u30fc\u30d0\u30fcIP}:\/var\/www\/html\/concrete\/concrete-export.sql concrete-export.sql\r\n\/\/ mysql\u30b3\u30f3\u30c6\u30ca\u5185\u306bconcrete-export.sql\u3092\u30b3\u30d4\u30fc\r\n# docker cp concrete-export.sql mysql:\/tmp\/\r\n\/\/ \u30a4\u30f3\u30dd\u30fc\u30c8\r\n# docker exec mysql \/bin\/bash -c &quot;mysql -h mysql -u {\u30e6\u30fc\u30b6\u30fc\u540d} -p {\u30d1\u30b9\u30ef\u30fc\u30c9} {\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d} &lt; \/tmp\/concrete-export.sql&quot;\r\n<\/pre>\n<p style=\"padding-left: 30px;\">\u3082\u3057\u304b\u3057\u305f\u3089\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3092\u3044\u3058\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u30fb\u30fb\u30fb<\/p>\n<p style=\"padding-left: 30px;\">\u30d6\u30ed\u30b0\u3068\u9055\u3063\u3066\u307e\u3060\u65b0\u898f\u306e\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u4f55\u304b\u3042\u308c\u3070\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u56de\u3001\u304b\u3089\u5185\u90e8\u30c4\u30fc\u30eb\u7cfb\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Concrete5\u306e\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002 \u3084\u308a\u65b9\u306fConcrete5\u516c\u5f0f\u306e\u300cconcrete5 \u30b5\u30a4\u30c8\u3092\u5fa9\u65e7\uff08\u30ea\u30b9\u30c8\u30a2\uff09\u3059\u308b\u65b9\u6cd5\u300d\u3092\u53c2\u8003\u306b\u3059\u308c\u3070\u3059\u3093\u306a\u308a\u3044\u304d\u307e\u3059\u3002 &nbsp; \uff11\uff0e\u79fb\u8a2d\u5143\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u79fb\u8a2d\u30c7\u30fc\u30bf [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,36,38,30,31],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-concrete5","category-docker","category-linux","category-oss","category-31"],"_links":{"self":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=468"}],"version-history":[{"count":5,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":475,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions\/475"}],"wp:attachment":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}