{"id":60,"date":"2011-02-23T01:34:57","date_gmt":"2011-02-22T16:34:57","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/blog\/?p=60"},"modified":"2011-02-23T01:34:57","modified_gmt":"2011-02-22T16:34:57","slug":"%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9backup%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=60","title":{"rendered":"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9BackUP\u554f\u984c"},"content":{"rendered":"<p>\u4eca\u56de\u306e\u30b5\u30fc\u30d0\u30fc\u30af\u30e9\u30c3\u30b7\u30e5\u3067\u306f\u3000\u5e78\u3044\u306a\u4e8b\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u304c\u7121\u4e8b\u3060\u3063\u305f\u306e\u3067\u3000\u6bd4\u8f03\u7684\u77ed\u671f\u9593\u3067\u518d\u958b\u3067\u304d\u305f\u3002\uff08\u307e\u3060\u3000\u534a\u8eab\u4e0d\u968f\u3067\u306f\u3042\u308b\u306e\u3060\u304c\u30fb\u30fb\u30fb\u30fb\uff09<\/p>\n<p>\u3082\u3057\u3000\u4eca\u307e\u3067\u9577\u3044\u9593\u3000\u6e9c\u3081\u8fbc\u3093\u3067\u304d\u305f\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e2d\u306e\u30c7\u30fc\u30bf\u304c\u58ca\u308c\u305f\u3089\uff1f\u3000\u3063\u3068\u3000\u601d\u3046\u3068\u305e\u3063\u3068\u3059\u308b\u3002<\/p>\n<p>\u4eca\u56de\u3000\u307e\u3058\u3081\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u554f\u984c\u306b\u53d6\u308a\u7d44\u3080\u3002<\/p>\n<p><strong>mysqlhotcopy<\/strong><br \/>\n\u4eca\u307e\u3067\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u4f7f\u7528\u3057\u3066\u304d\u305f\u30b3\u30de\u30f3\u30c9\u3002<br \/>\n\u4f7f\u3044\u65b9\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre>mysqlhotcopy DATABASENAME -u root -p PASSWORD BACKUPDIR<\/pre>\n<p>\u304a\u624b\u8efd\u306b\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u7a3c\u52d5\u72b6\u614b\u306e\u307e\u307e\u3067\u3000\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u308c\u308b\u3002<br \/>\n\u305f\u3060\u3057\u30b3\u30d4\u30fc\u3059\u308b\u306e\u306f\u3000MyISAM\u30c6\u30fc\u30d6\u30eb\u306e\u307f\u3001InnoDB\u306f\u30b3\u30d4\u30fc\u3057\u3066\u304f\u308c\u3093\u306e\u3088\u306d\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u304b\u306a\uff1f\u306a\u3044\u306e\u304b\u306a\uff1f<\/p>\n<p><strong>mysqldump<\/strong><br \/>\n\u4eca\u56de\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u3066\u308b\u30b3\u30de\u30f3\u30c9\u3002<br \/>\n\u4f7f\u3044\u65b9\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre>mysqldump -u root -pPASSWORD\u3000DATABASENAME > BACKFILENAME<\/pre>\n<p>\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\u306e\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3067\u4f7f\u7528\u3059\u308b\u3068\u3000\u30b5\u30fc\u30d0\u30fc\u306b\u30a4\u30f3\u3057\u3066\u308b\u7b2c\u4e09\u8005\u304b\u3089ps\u30b3\u30de\u30f3\u30c9\u7b49\u3067\u3000\u30cf\u30c3\u30ad\u30f3\u30b0\u3055\u308c\u308b\u6050\u308c\u304c\u3042\u308b\u3002\u3000\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u3042\u307e\u308a\u3088\u308d\u3057\u304f\u306a\u3044\u3002<br \/>\n\u3000\u305d\u3053\u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3000.my.cnf\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u4fdd\u5b58\u3059\u308b\u3002<\/p>\n<pre>[client]\npassword=PASSWORD<\/pre>\n<p>\u5165\u529b\u3057\u3066\u7d42\u3048\u305f\u3089\u3000\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30af\u30bb\u30b9\u30e2\u30fc\u30c9\u3092\u3000600 or 400\u306b\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre>chmod 400 .my.cnf<\/pre>\n<p>\u4ee5\u5f8c\u306f\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u30aa\u30d7\u30b7\u30e7\u30f3\u7121\u3057\u3067\u3000mysqldump\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre>mysqldump -u root DATABASENAME > BACKUPFILENAME<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306e\u30b5\u30fc\u30d0\u30fc\u30af\u30e9\u30c3\u30b7\u30e5\u3067\u306f\u3000\u5e78\u3044\u306a\u4e8b\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u304c\u7121\u4e8b\u3060\u3063\u305f\u306e\u3067\u3000\u6bd4\u8f03\u7684\u77ed\u671f\u9593\u3067\u518d\u958b\u3067\u304d\u305f\u3002\uff08\u307e\u3060\u3000\u534a\u8eab\u4e0d\u968f\u3067\u306f\u3042\u308b\u306e\u3060\u304c\u30fb\u30fb\u30fb\u30fb\uff09 \u3082\u3057\u3000\u4eca\u307e\u3067\u9577\u3044\u9593\u3000\u6e9c\u3081\u8fbc\u3093\u3067\u304d\u305f\u3000\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e2d\u306e\u30c7\u30fc\u30bf\u304c\u58ca\u308c\u305f\u3089\uff1f\u3000\u3063 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/darkgray.homelinux.com\/blog\/?p=60\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9BackUP\u554f\u984c&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}