{"id":450,"date":"2014-03-01T18:53:38","date_gmt":"2014-03-01T18:53:38","guid":{"rendered":"http:\/\/www.woori4.com\/wordpress\/?p=450"},"modified":"2014-03-01T18:53:38","modified_gmt":"2014-03-01T18:53:38","slug":"ssh-%ec%9d%b8%ec%a6%9d%ed%82%a4%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-rsync%eb%a1%9c-%eb%b0%b1%ec%97%85%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/woori4.com\/?p=450","title":{"rendered":"ssh \uc778\uc99d\ud0a4\ub97c \uc774\uc6a9\ud55c rsync\ub85c \ubc31\uc5c5\ud558\uae30"},"content":{"rendered":"<div>[ssh \uc778\uc99d\ud0a4\ub97c \uc774\uc6a9\ud55c rsync\ub85c \ubc31\uc5c5\ud558\uae30] \u00a0\u00a0http:\/\/blog.blueweb.co.kr\/197<\/div>\n<div>\u00a0## web\uc11c\ubc84\ub97c backup\uc11c\ubc84\ub85c \ubc31\uc5c5 ##<\/div>\n<div><\/div>\n<div>1] \ud0a4\uc0dd\uc131<\/div>\n<div>backup \uc11c\ubc84\uc5d0\uc11c ssh \uc778\uc99d\ud0a4\ub97c \uc0dd\uc131<\/div>\n<div>\uac1c\uc778\ud0a4\ub97c \uac00\uc9c4\ucabd\uc774 \uacf5\uac1c\ud0a4\ub97c \uac00\uc9c4\ucabd\uc73c\ub85c \uc811\uc18d\ud55c\ub2e4.<\/div>\n<div><\/div>\n<div># ssh-keygen -d -t rsa<\/div>\n<div>Generating public\/private rsa key pair.<\/div>\n<div>Enter file in which to save the key (\/root\/.ssh\/id_rsa):<\/div>\n<div>Enter passphrase (empty for no passphrase):<\/div>\n<div>Enter same passphrase again:<\/div>\n<div>Your identification has been saved in \/root\/.ssh\/id_rsa.<\/div>\n<div>Your public key has been saved in \/root\/.ssh\/id_rsa.pub.<\/div>\n<div>The key fingerprint is:<\/div>\n<div>28:df:3a:72:3c:5e:aa:e6:28:06:96:ee:31:14:10:0d root@backup<\/div>\n<div><\/div>\n<div>## \ud328\uc2a4\uc6cc\ub4dc\ub97c \uc785\ub825\ud558\uc9c0 \uc54a\uc558\ub2e4. \/root\/.ssh\/id_rsa.pub \ud30c\uc77c\uc774 \uacf5\uac1c\ud0a4\uc774\uba70, \uc811\uc18d\ud558\ub824\ub294 \uc11c\ubc84\uc5d0 \uc2ec\uc5b4 \ub450\uc5b4\uc57c \ud55c\ub2e4. ##<\/div>\n<div><\/div>\n<div><\/div>\n<div>2] \uacf5\uac1c\ud0a4\ub97c \uc6f9 \uc11c\ubc84\uc758 \/root\/.ssh\/authorized_keys \uc5d0 \ub123\ub294\ub2e4<\/div>\n<div><\/div>\n<div><\/div>\n<div>3] backup\uc11c\ubc84\uc5d0\uc11c \uc6f9 \uc11c\ubc84\ub85c \uc811\uc18d\ud14c\uc2a4\ud2b8<\/div>\n<div># ssh -i \/root\/.ssh\/id_rsa 127.0.0.1<\/div>\n<div><\/div>\n<div>4] rsync\ub85c \uc2e4\ud589<\/div>\n<div># rsync -avz -e ssh 127.0.0.1:\/backup\/zzzzzzz \/backup\/<\/div>\n<div><\/div>\n<div>5] cron \ub4f1\ub85d<\/div>\n<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<div>vi rsync_backup.sh<\/div>\n<div>#!\/bin\/sh<\/div>\n<div>rsync -avz -e ssh 127.0.0.1:\/backup\/zzzzzzz \/backup\/<\/div>\n<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<div><\/div>\n<div>#crontab -e<\/div>\n<div>00 03 * * * \/bin\/sh \/root\/backup\/rsync_backup.sh<\/div>\n","protected":false},"excerpt":{"rendered":"<p>[ssh \uc778\uc99d\ud0a4\ub97c \uc774\uc6a9\ud55c rsync\ub85c \ubc31\uc5c5\ud558\uae30] \u00a0\u00a0http:\/\/blog.blueweb.co.kr\/197 \u00a0## web\uc11c\ubc84\ub97c backup\uc11c\ubc84\ub85c \ubc31\uc5c5 ## 1] \ud0a4\uc0dd\uc131 backup \uc11c\ubc84\uc5d0\uc11c ssh \uc778\uc99d\ud0a4\ub97c \uc0dd\uc131 \uac1c\uc778\ud0a4\ub97c \uac00\uc9c4\ucabd\uc774 \uacf5\uac1c\ud0a4\ub97c \uac00\uc9c4\ucabd\uc73c\ub85c \uc811\uc18d\ud55c\ub2e4. # ssh-keygen -d -t rsa Generating public\/private rsa key pair. Enter&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":1346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[37,52],"class_list":["post-450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nas","tag-nas-2","tag-ssh_key"],"_links":{"self":[{"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=450"}],"version-history":[{"count":0,"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/posts\/450\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/media\/1346"}],"wp:attachment":[{"href":"https:\/\/woori4.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}