{"id":622,"date":"2015-07-26T20:55:15","date_gmt":"2015-07-26T11:55:15","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=622"},"modified":"2015-07-26T20:55:15","modified_gmt":"2015-07-26T11:55:15","slug":"rsync%e3%81%a8cron%e3%81%a7%e5%ae%9a%e6%9c%9f%e7%9a%84%e3%81%ab%e3%81%ab%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%90%8c%e6%9c%9f%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=622","title":{"rendered":"rsync\u3068cron\u3067\u5b9a\u671f\u7684\u306b\u306b\u30c7\u30fc\u30bf\u3092\u540c\u671f\u3059\u308b\u3002"},"content":{"rendered":"<p>rsync\u3068cron\u3067\u5b9a\u671f\u7684\u306b\u30c7\u30fc\u30bf\u3092\u540c\u671f\u3059\u308b\u4ed5\u7d44\u307f\u3092\u3056\u3063\u304f\u308a\u3068\u3002<\/p>\n<p>\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u3092\u3001 \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30b5\u30a4\u30c8\u3078\u3068\u540c\u671f\u3055\u305b\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4e0a\u3052\u305f\u30c7\u30fc\u30bf\u3092\u5225\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u4f7f\u3044\u305f\u3044\u7b49\u3001linux\u74b0\u5883\u304b\u3089linux\u74b0\u5883\u3078\u3068\u30c7\u30fc\u30bf\u3092\u5b9a\u671f\u7684\u306b\u540c\u671f\u3055\u305b\u305f\u3044\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<h2>\u9375\u306e\u4f5c\u6210\u3068\u30ed\u30b0\u30a4\u30f3<\/h2>\n<p>\u307e\u305a\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306a\u3057\u306e\u9375\u3092\u4f5c\u6210\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u5074\u306b\u79d8\u5bc6\u9375\u3092\u6301\u305f\u305b\u308b\u3002<\/p>\n<p>\u540c\u671f\u3067\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u5074\u306b\u516c\u958b\u9375\u3092\u6e21\u3057\u3066\u767b\u9332\u3059\u308b\u3002<\/p>\n<p>\u79d8\u5bc6\u9375\u3092\u6307\u5b9a\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3002<\/p>\n<p>\u3053\u306e\u8fba\u308a\u4ee5\u524d\u306b<a href=\"http:\/\/gomocool.net\/gomokulog\/?p=557\" target=\"_blank\">ssh-keygen\u3067\u9375\u4f5c\u6210\u3057\u3001ssh\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/a>\u306b\u66f8\u3044\u305f\u306e\u3067\u305d\u3061\u3089\u3092\u53c2\u7167\u3002<\/p>\n<p>(\u3061\u306a\u307f\u306b\u3001rsync\u3092\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u5074\u3067\u52d5\u304b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u79d8\u5bc6\u9375\u3068\u516c\u958b\u9375\u306e\u6301\u3061\u65b9\u306f\u9006\u306b\u306a\u308b\u3002)<\/p>\n<h2>rsync\u3092\u8a66\u3059<\/h2>\n<p>\u6b21\u306b\u3001rsync\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true\">rsync -av -e \"ssh -i \/home\/gomokuro\/keys\/id_rsa_for_rsync\" ~\/moge\/ gomokuro@gomokuro.net:moge<\/pre>\n<p>\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306a\u3057\u306e\u79d8\u5bc6\u9375\u3092id_rsa_for_rsync\u3068\u3057\u3066\u4f5c\u3063\u305f\u3068\u3057\u3066\u3001\u30db\u30fc\u30e0\u306emoge\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3001\u30ea\u30e2\u30fc\u30c8\u5148\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\u4f8b\u3067\u306fgomokuro.net\u306egomokuro\u3068\u3044\u3046\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea)\u306emoge\u306b\u540c\u671f\u3055\u305b\u308b\u5834\u5408\u306e\u66f8\u304d\u65b9\u3002<br \/>\n\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u30b3\u30d4\u30fc\u5143\u3092~\/moge\u3068\u672b\u5c3e\u306e\u30b9\u30e9\u30c3\u30b7\u30e5\u3092\u53d6\u308b\u3068\u3001~\/moge\/moge\/\u5404\u30d5\u30a1\u30a4\u30eb \u3068\u4fdd\u5b58\u3055\u305b\u308b\u3002<br \/>\n\u306a\u306e\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u3092~\/moge \u3001\u30ea\u30e2\u30fc\u30c8\u3092~\/ \u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3082\u3088\u3044\u3002<\/p>\n<p>-a\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u304a\u3051\u3070\u3068\u308a\u3042\u3048\u305a\u3088\u304f\u3042\u308b\u7cfb\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306a\u308b\u3002<br \/>\n-v\u306f\u3001\u30b3\u30d4\u30fc\u306e\u7d4c\u904e\u304c\u898b\u308c\u308b\u306e\u3067\u3001\u624b\u52d5\u3067\u3084\u308b\u5834\u5408\u306f\u3068\u308a\u3042\u3048\u305a\u3064\u3051\u3066\u304a\u304f\u3079\u304d\u3002<br \/>\n-e\u306f\u3001\u63a5\u7d9a\u306b\u4f7f\u3046\u30b7\u30a7\u30eb\u540d\uff1a\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068ssh\u306a\u306e\u3067\u4f7f\u3046\u3053\u3068\u306f\u306a\u3044\u304c\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u79d8\u5bc6\u9375\u3092\u72ec\u81ea\u306b\u3057\u305f\u308a\u3001ssh\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u5909\u3048\u3066\u308b\u5834\u5408\u306a\u3069\u306b\u4f7f\u3046\u3002<\/p>\n<p>\u6ce8\u610f\u70b9\u306f\u3001\u79d8\u5bc6\u9375\u3092\u4efb\u610f\u3067\u6307\u5b9a\u3059\u308b\u5834\u5408\u306b\u3001-e \u30aa\u30d7\u30b7\u30e7\u30f3\u4ee5\u964d\u306bssh\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u8a18\u8ff0\u3059\u308b\u304c\u3001\u3053\u3053\u304c\u30d5\u30eb\u30d1\u30b9\u3067\u306a\u3044\u3068\u9375\u3092\u8aad\u3081\u306a\u3044\u3002<\/p>\n<h2>cron\u3067\u81ea\u52d5\u5b9f\u884c<\/h2>\n<p>\u6700\u5f8c\u306bcron\u306b\u81ea\u52d5\u5b9f\u884c\u3055\u305b\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true\">crontab -e<\/pre>\n<p>\u3067\u3001cron\u7de8\u96c6\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u3002<\/p>\n<pre class=\"lang:default decode:true\">35 * * * * rsync -av -e \"ssh -i \/home\/gomokuro\/keys\/id_rsa_for_gomokuro\" ~\/moge\/ gomokuro@gomokuro.net:moge\r\n<\/pre>\n<p>\u8a2d\u5b9a\u9805\u76ee\u306f\u5de6\u304b\u3089\u300c\u5206\u300d\u300c\u6642\u300d\u300c\u65e5\u300d\u300c\u6708\u300d\u300c\u66dc\u65e5\u300d \u30b3\u30de\u30f3\u30c9 \u3068\u306a\u3063\u3066\u3044\u308b\u3002<br \/>\n\u4e0a\u306e\u4f8b\u3060\u3068\u3001\u6bce\u664235\u5206\u306b\u306a\u3063\u305f\u3089\u5b9f\u884c\u3059\u308b\u3002<br \/>\n\u307e\u305f\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u4e26\u3079\u305f\u308a\u3001\u30cf\u30a4\u30d5\u30f3\u30671-6\u306a\u3069\u3068\u3064\u306a\u3044\u3060\u308a\u3001*\/5\u3092\u5206\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u6307\u5b9a\u3057\u30665\u5206\u304a\u304d\u306a\u3069\u3068\u66f8\u3051\u308b\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u76ee\u5148\u306e\u5206\u6570\u306b\u6307\u5b9a\u3057\u3066\u540c\u671f\u3055\u308c\u308b\u304b\u3092\u307f\u3066\u3001\u7d30\u304b\u3044\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u3001\u81ea\u52d5\u3067\u4efb\u610f\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4efb\u610f\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u540c\u671f\u3055\u305b\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rsync\u3068cron\u3067\u5b9a\u671f\u7684\u306b\u30c7\u30fc\u30bf\u3092\u540c\u671f\u3059\u308b\u4ed5\u7d44\u307f\u3092\u3056\u3063\u304f\u308a\u3068\u3002 \u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u3092\u3001 \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30b5\u30a4\u30c8\u3078\u3068\u540c\u671f\u3055\u305b\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4e0a\u3052\u305f\u30c7\u30fc\u30bf\u3092\u5225\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u4f7f\u3044\u305f\u3044\u7b49\u3001linux\u74b0\u5883\u304b\u3089&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=622\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-622","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=622"}],"version-history":[{"count":9,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/622\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/622\/revisions\/634"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}