{"id":447,"date":"2014-03-01T18:51:21","date_gmt":"2014-03-01T18:51:21","guid":{"rendered":"http:\/\/www.woori4.com\/wordpress\/?p=447"},"modified":"2014-03-01T18:51:21","modified_gmt":"2014-03-01T18:51:21","slug":"rsync-using-backup-from-active-nas","status":"publish","type":"post","link":"https:\/\/woori4.com\/?p=447","title":{"rendered":"rsync using backup from active nas"},"content":{"rendered":"<div>\n<h2><a href=\"http:\/\/dev.jpblog.co.kr\/21\">rsync \uc0ac\uc6a9\ud558\uae30<\/a>\u00a0 \u00a0http:\/\/dev.jpblog.co.kr\/21<\/h2>\n<p><a href=\"http:\/\/dev.jpblog.co.kr\/category\/Linux%20%26%20Solaris\">Linux &amp; Solaris<\/a>\u00a02009\/08\/04 05:34\u00a0posted by JP\u2122<\/p>\n<\/div>\n<div>\ubc31\uc5c5\ud558\uae30\uc5d0 \uc720\uc6a9\ud55c rsync\uc5d0 \ub300\ud574\uc11c \uc62c\ub824\ubd05\ub2c8\ub2e4~<br \/>\n\ubc31\uc5c5\uc5d0\ub294 \uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uaca0\uc9c0\ub9cc \uc5ec\uae30\uc120 \uac04\ub2e8\ud788 cron\uc744 \uc774\uc6a9\ud55c rsync \ubc31\uc5c5\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.rsync\ub780?<br \/>\nrcp(remote file copy)\uc758 \uac15\ud654\ud615\uc73c\ub85c \u201crsync \uc54c\uace0\ub9ac\uc998\u201d \uc774\ub77c\ub294 \uc6d0\uaca9\uc0c1\uc758 \ud30c\uc77c\uc758 \uc804\uc1a1\uc774\ub098<br \/>\n\ub3d9\uae30\ud654\ub97c \uac00\uc7a5 \ube60\ub978 \uc18d\ub3c4\ub85c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc4f0\ub294 \uc624\ud508 \uc18c\uc2a4 \uc720\ud2f8\ub9ac\ud2f0\ub85c GPL\uc5d0 \uae30\ucd08\ud574<br \/>\n\uc790\uc720\ub85c\uc774 \uc774\uc6a9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.1. rsync\uc758 \ud2b9\uc9d5<br \/>\n1) \ub514\ub809\ud1a0\ub9ac \ud2b8\ub9ac\ub098 \ud30c\uc77c\uc2dc\uc2a4\ud15c \uc804\uccb4\ub97c \uac31\uc2e0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4<br \/>\n2) \uc635\uc158\uc5d0 \ub530\ub77c \uc18c\ud504\ud2b8 \ub9c1\ud06c\ub098 \ud30c\uc77c \uc18c\uc720\uc790, \ud37c\ubbf8\uc158, \ub514\ubc14\uc774\uc2a4, \ud0c0\uc784\uc2a4\ud0dc\ud504 \uc720\uc9c0\uac00<br \/>\n\uac00\ub2a5\ud569\ub2c8\ub2e4.<br \/>\n3) \ub0b4\ubd80 \ud30c\uc774\ud504\ub77c\uc778\uc774 \ubcf5\uc7a1\ud55c \ud30c\uc77c\uc758 \ub808\uc774\ud134\uc2dc\ub97c \uc904\uc785\ub2c8\ub2e4.<br \/>\n4) \uc804\uc1a1\uc5d0 rsh, ssh \ud639\uc740 \ub2e4\uc774\ub809\ud2b8 \uc18c\ucf13\uc744 \uc4f0\ub294\uac83\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<br \/>\n5) \uc774\uc0c1\uc801 \ubbf8\ub7ec\ub9c1\uc744 \uac00\ub2a5\ucf00 \ud558\ub294 anonymous rsync\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4.<br \/>\n6) \ud2b9\ubcc4\ud55c \uad8c\ud55c \uc5c6\uc774\ub3c4 \uc2e4\ud589\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n<p>2. rsync \uc124\uce58<br \/>\nredhat \ubc30\ud3ec\ud310 \uc5d0\ub294 rsync-2.x.x\uac00 \uae30\ubcf8\uc73c\ub85c \uc124\uce58\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n\uc124\uce58\uac00 \uc548 \ub418\uc5b4 \uc788\ub2e4\uba74\u00a0<a href=\"http:\/\/rsync.samba.org\/ftp\/rsync\/\">http:\/\/rsync.samba.org\/ftp\/rsync\/<\/a>\uc5d0\uc11c \ucd5c\uc2e0\ubc84\uc804\uc744 \ub2e4\uc6b4\ubc1b\uc2b5\ub2c8\ub2e4.<br \/>\n1) \uc124\uce58 \ud655\uc778(redhat \ubc30\ud3ec\ud310\uc758 \uacbd\uc6b0)<br \/>\n# rpm -qa |grep rsync<br \/>\nrsync-2.5.6-20<br \/>\n\uc704\uc640 \uac19\uc774 \ud574\ub2f9 \uc11c\ubc84\uc5d0 rsync\uac00 \uc124\uce58\ub418\uc5b4 \uc788\ub294\uc9c0\ub97c \ud655\uc778\ud569\ub2c8\ub2e4.<br \/>\n2) \uc18c\uc2a4 \uc124\uce58(\uc18c\uc2a4\ub85c \uc124\uce58\ud558\ub294 \uacbd\uc6b0)<br \/>\n# tar zxvf rsync-2.4.6.tar.gz<br \/>\n# .\/configure &amp;&amp; make &amp;&amp; make install<\/p>\n<p>3. rsync \uc124\uc815<br \/>\nrsync\uac00 \uc0ac\uc6a9\ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc740 rsh\ub098 ssh\uc778\ub370 \uc774\uac83\uc744 \uc6d0\uce58 \uc54a\ub294 \uacbd\uc6b0\ub294 873\ud3ec\ud2b8\ub97c \uc774\uc6a9<br \/>\n\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. rsync\uac00 873\ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub290\ub0d0, rsh\ub098 ssh\ub97c \uc0ac\uc6a9\ud558\ub290\ub0d0\uc5d0 \ub530\ub77c \uc124\uc815<br \/>\n\ub0b4\uc6a9\uc774 \uc57d\uac04 \ud2c0\ub824\uc9d1\ub2c8\ub2e4.<br \/>\n873\ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \/etc\/inetd.conf(redhat7.0 \uc774\uc804) or<br \/>\n\/etc\/xinetd.d\/rsync(redhat7.0\uc774\ud6c4)\uc744 \uc124\uc815\ud558\uace0 \/etc\/rsyncd.conf\ub97c \ub9cc\ub4e4\uc5b4 \uc90d\ub2c8\ub2e4.<\/p>\n<p>1) 873\ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud560 \uacbd\uc6b0<br \/>\n\uac00) \/etc\/inetd.conf \uc124\uc815(redhat7.0 \uc774\uc804\uc77c \uacbd\uc6b0)<br \/>\nrsync stream tcp nowait root \/usr\/bin\/rsync rsyncd &#8211;daemon<br \/>\n&#8211;&gt; \/etc\/rc.d\/init.d\/inetd start \uc11c\ube44\uc2a4\ub97c restart \ud574\uc900\ub2e4.<br \/>\n\ub098) \/etc\/xinetd.d\/rsync \uc124\uc815(redhat7.0 \uc774\ud6c4\uc77c \uacbd\uc6b0)<br \/>\nservice rsync<br \/>\n{<br \/>\ndisable = no<br \/>\nsocket_type = stream<br \/>\nwait = no<br \/>\nuser = root<br \/>\nserver = \/usr\/bin\/rsync<br \/>\nserver_args = &#8211;daemon<br \/>\nlog_on_failure += USERID<br \/>\n}<\/p>\n<p>&#8211;&gt; \/etc\/rc.d\/init.d\/xinetd restart \uc11c\ube44\uc2a4\ub97c restart \ud574\uc900\ub2e4<br \/>\n\ub2e4) \/etc\/services\ud30c\uc77c\uc5d0\ub3c4 \uc544\ub798\uc640 \uac08\uc740 \ub0b4\uc6a9\uc774 \uc5c6\uc73c\uba74 \ucd94\uac00\ud574 \uc8fc\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n<p>phonebook 767\/tcp<br \/>\nrsync 873\/tcp<br \/>\nrsync 873\/udp<br \/>\ntelnets 992\/tcp<\/p>\n<p>\ub77c) \ub370\ubaac\ud655\uc778(netstat -tap)<\/p>\n<p># netsyat -tap<\/p>\n<p>tcp 0 0 linux4:32774 *:* LISTEN<br \/>\ntcp 0 0 *:rsync *:* LISTEN<br \/>\ntcp 0 0 *:sunrpc *:* LISTEN<\/p>\n<p>\ub9c8) \/etc\/rsyncd.conf<\/p>\n<p>[www]<br \/>\npath = \/home\/www<br \/>\ncomment = webserver1<br \/>\nuid = nobody<br \/>\ngid = nobody<br \/>\nuse chroot = yes<br \/>\nread only = yes<br \/>\nhosts allow = 192.168.10.3<br \/>\nmax connections = 3<br \/>\ntimeout 600<\/p>\n<p>[www] \uc11c\ube44\uc2a4\uba85<br \/>\npath \uc11c\ube44\uc2a4\ud560 \ub514\ub809\ud1a0\ub9ac\uc704\uce58<br \/>\ncomment \uc124\uba85<br \/>\nuid \ud30c\uc77c\uc804\uc1a1\ud558\ub294 \uc0ac\uc6a9\uc790\uc758 id. \uae30\ubcf8\uac12\uc740 nobody<br \/>\ngid \ud30c\uc77c\uc804\uc1a1\ud558\ub294 \uc0ac\uc6a9\uc790\uc758 \uadf8\ub8f9 id. \uae30\ubcf8\uac12\uc740 nobody<br \/>\nuse chroot \uc704\uc758 path\ub97c root \ub514\ub809\ud1a0\ub9ac\ub85c \uc0ac\uc6a9. (\ubcf4\uc548\uc0c1 \ud544\uc694)<br \/>\nread only \uc77d\uae30\uc804\uc6a9(\ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc11c\ubc84\ub85c \uc62c\ub9ac\ub294 \uacbd\uc6b0\uc5d0\ub294 read only=no \ub85c \uc124\uc815)<br \/>\nhosts allow \ud638\uc2a4\ud2b8\ubcc4 \uc811\uc18d\ud5c8\uc6a9. \uae30\ubcf8\uac12\uc740 all host\uc785\ub2c8\ub2e4. \uc811\uadfc \ud5c8\uc6a9\ud560 \ud638\uc2a4\ud2b8\uc758 ip\ub97c<br \/>\n\uc801\uc5b4\uc8fc\uc2dc\uba74 \ub429\ub2c8\ub2e4.(\ubcf4\uc548\uc0c1 \ud544\uc694)<br \/>\nmax connections \ub3d9\uc2dc\uc811\uc18d\uc790\uc218.<br \/>\ntimeout \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc811\uadfc\uc2dc \ud0c0\uc784\uc544\uc6c3\uc2dc\uac04. anonymous \ub85c \uc6b4\uc601\ud558\ub294 \uacbd\uc6b0 \uc124\uc815\uc744<br \/>\n\ud574\uc57c \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc8fd\uc5c8\uc744 \ub54c \uc11c\ubc84\uc5d0\uc11c \uc811\uc18d\uc744 \ud574\uc81c\ud560 \uc218 \uc788\uc74c.<\/p>\n<p>2) ssh, rsh \ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0<br \/>\ninetd\ub098 xinetd\ub97c \uc218\uc815\ud558\uc9c0 \uc54a\uc544\ub3c4 \ub418\uace0, \/etc\/rsyncd.conf\ub97c \ub9cc\ub4e4\uc5b4 \uc8fc\uc9c0 \uc54a\uc544\ub3c4<br \/>\n\ub429\ub2c8\ub2e4. \ud2b9\ubcc4\ud55c \uc124\uc815\uc5c6\uc774 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p>4. rsync\uc758 \uc0ac\uc6a9\ubc95<br \/>\n\uc6b0\uc120 rsync\uc11c\ubc84\uc124\uc815\uc774 \ub41c \uac83\uc744 webserver1(www1.linuxone.co.kr)\uc774\ub77c\uace0 \ud558\uace0,<br \/>\n\uadf8 \uc11c\ubc84\ub85c\ubd80\ud130 \uc815\ubcf4\ub97c \uac00\uc838\uc640 \ub3d9\uae30\ud654 \uc2dc\ud0ac \uc11c\ubc84\ub97c webserver2(www2.linuxone.co.kr)<br \/>\n\ub77c\uace0 \uac00\uc815<br \/>\n1) 873\ud3ec\ud2b8 \uc0ac\uc6a9\uc2dc<br \/>\n# rsync &#8211; \uc635\uc158 \uc11c\ubc84::\ub514\ub809\ud1a0\ub9ac \ub3d9\uae30\ud654 \uc704\uce58<br \/>\n\uac00) webserver2\uc758 \/home\/www\ub85c webserver1\uc758 \/home\/www\ub0b4\uc6a9\uc744 \ub3d9\uae30\ud654 \uc2dc\ud0a4\ub824\uace0<br \/>\n\ud55c\ub2e4\uba74, \uc774\ub807\uac8c \ud558\uba74 \ub429\ub2c8\ub2e4.<br \/>\n\uc608) webserver2\uc5d0\uc11c<br \/>\n# rsync -avz www1.linuxone.co.kr::\/home\/www \/home\/www<br \/>\n&#8211; avz\uc635\uc158\uc740 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<br \/>\n-a \ub294 archive mode (\uc2ec\ubcfc\ub9ad \ub9c1\ud06c, \uc18d\uc131, \ud37c\ubbf8\uc158, \uc18c\uc720\uad8c \ub4f1 \ubcf4\uc874)<br \/>\n-v verbose (\uc0c1\uc138\ud558\uac8c \ubcf4\uc5ec\uc90c)<br \/>\n-z compress (\uc804\uc1a1\uc2dc \uc555\ucd95\uc744 \ud568)<br \/>\n\ub098) webserver2\uc5d0\uc11c webserver1\uc758 \ub0b4\uc6a9\uc744 \uac00\uc838\uc624\uba74\uc11c webserver1\uc5d0 \uc5c6\ub294<br \/>\n\ub0b4\uc6a9\uc740 webserver2\uc5d0\uc11c \uc0ad\uc81c\ud568<br \/>\n\uc608) webserver2\uc5d0\uc11c<br \/>\n# rsync -avz -delete www1.linuxone.co.kr::\/home\/www<br \/>\n2) ssh, rsh \uc0ac\uc6a9\uc2dc<br \/>\n\ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \uc0ac\uc6a9\ub9cc \ud558\uba74 \ub429\ub2c8\ub2e4.<br \/>\n# rsync &#8211; \uc635\uc158 -e ssh(rsh) \uc11c\ubc84:\ub514\ub809\ud1a0\ub9ac \ub3d9\uae30\ud654 \uc704\uce58<br \/>\n\uac00) webserver2\uc758 \/home\/www\ub85c webserver1\uc758 \/home\/www\ub0b4\uc6a9\uc744 \ub3d9\uae30\ud654 \uc2dc\ud0a4\ub824\uace0<br \/>\n\ud55c\ub2e4\uba74, \uc774\ub807\uac8c \ud558\uba74 \ub429\ub2c8\ub2e4.<br \/>\n\uc608) webserver2\uc5d0\uc11c<br \/>\n# rsync -avz -e ssh www1.linuxone.co.kr:\/home\/www \/home\/www<\/p>\n<p><strong>\ub098) ssh\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \ube44\ubc00\ubc88\ud638\ub97c \uc785\ub825\ud574\uc57c\ud558\ub294\ub370 \uc774\uac83\uc740 \uc778\uc99d\ud0a4\ub97c \uc0dd\uc131\ud574\uc11c \ubc88\uac70\ub85c\uc6c0\uc744<\/strong><br \/>\n<strong> \uc5c6\uc568 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/strong><br \/>\n\uc608) <strong>ssh-keygen -d<\/strong> \ub77c\uace0\ud55c\uba74<br \/>\n~\/.ssh\/<strong>id_dsa.pub<\/strong> \ub77c\ub294 \ud30c\uc77c\uc774 \uc0dd\uc131\ub428<br \/>\n\uc774\uac78 \uc6d0\ubcf8 \ub370\uc774\ud130\uac00 \uc788\ub294 \uc11c\ubc84\uc5d0 \uc800\uc7a5\ud568<br \/>\n<strong>scp -p .ssh\/id_dsa.pub\u00a0<a href=\"mailto:root@%ED%98%B8%EC%8A%A4%ED%8A%B8%EB%AA%85:~\/.ssh\/authorized_keys2\">root@\ud638\uc2a4\ud2b8\uba85:~\/.ssh\/authorized_keys<\/a><\/strong>\ub77c\uace0<br \/>\n\ub4f1\ub85d\ud558\uba74 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n<p>\u203b crontab \uc5d0 \ub2e4\uc74c\uacfc \uac19\uc774 \ub4f1\ub85d\ud558\uba74 \ub354\uc6b1 \uc88b\uc2b5\ub2c8\ub2e4.<br \/>\nrsync -avPz &#8211;delete &#8211;stats -l -t -e ssh\u00a0<a href=\"mailto:root@webserver1:\/home\/\">root@webserver1:\/home\/<\/a>\u00a0\/backup<br \/>\n&#8211; \uc800\ub807\uac8c \ud560 \uacbd\uc6b0 \uc555\ucd95\uc744 \ud558\uace0, \ud37c\ubbf8\uc158 \ubc0f \uc18c\uc720\uad8c\uc740 \uadf8\ub300\ub85c \uc720\uc9c0\ud558\uba70, \uc2ec\ubc8c\ub9ad \ub9c1\ud06c\ub294<br \/>\n\uc2ec\ubc8c\ub9ad \ub9c1\ud06c \uadf8\ub300\ub85c \ubc31\uc5c5\ud558\uace0, \uc804\uc1a1 \uc18d\ub3c4 \ubc0f \uc2dc\uac04\uc744 \ucd9c\ub825\ud574\uc8fc\uace0, \ub9c8\uc9c0\ub9c9\uc5d0 \uc804\uc1a1\ub41c<br \/>\n\uc0c1\ud0dc\ub97c \ucd9c\ub825 \ud574\uc90c.<br \/>\n&#8211;delete\ub294 \uc635\uc158\uc740 \uc6d0\ubcf8\uc5d0\ub294 \uc5c6\uc9c0\ub9cc \uadf8 \uc804\uc5d0 \ubc1b\uc740 \ubc31\uc5c5\ubcf8\uc5d0 \uc788\uc744 \uacbd\uc6b0 \uc0ad\uc81c\ud574\uc90c.<br \/>\n\uadf8\ub798\uc11c, \uc6d0\ubcf8\uacfc \ud56d\uc0c1 \ub611\uac19\uc774 \ubc31\uc5c5\uc774 \ub418\ub3c4\ub85d \ud568<br \/>\n5. crontab\uc5d0 \ub4f1\ub85d<br \/>\n\ubaa8\ub4e0 \ub0b4\uc6a9\uc744 crontab\uc5d0 \ub4f1\ub85d\ud569\ub2c8\ub2e4.<br \/>\n# crontab -e<br \/>\n10 04 * * * &#8220;rsync -avz -e ssh www1.linuxone.co.kr:\/home\/www \/home\/www&#8221;<br \/>\n\ub9e4\uc77c 04\uc2dc 10\ubd84\uc5d0 www1.linuxone.co.kr\uc758 \/home\/www \ub97c \uc790\uc2e0\uc758 home\/www\ub85c<br \/>\n\ub3d9\uae30\ud654 \uc2dc\ud0b5\ub2c8\ub2e4.<\/p>\n<p>6. rsync\uc758 \uc8fc\uc694\uc635\uc158<br \/>\n-v \uc9c4\ud589\uc0c1\ud669\uc744 \uc0c1\uc138\ud788 \ubcf4\uc5ec\uc90c<br \/>\n-r \uc9c0\uc815\ud55c \ub514\ub809\ud1a0\ub9ac\uc758 \ud558\uc704 \ub514\ub809\ud1a0\ub9ac\uae4c\uc9c0 \uc7ac\uadc0\uc801\uc73c\ub85c \uc2e4\ud589<br \/>\n-l \uc18c\ud504\ud2b8\ub9c1\ud06c \ubcf4\uc874<br \/>\n-H \ud558\ub4dc\ub9c1\ud06c \ubcf4\uc874<br \/>\n-p \ubc84\uc804\uc18d\uc131 \ubcf4\uc874<br \/>\n-o \uc18c\uc720\uc18d\uc131 \ubcf4\uc874(\ub8e8\ud2b8)<br \/>\n-g \uadf8\ub8f9\uc18d\uc131 \ubcf4\uc874<br \/>\n-t \ud0c0\uc784\uc2a4\ud0ec\ud504 \ubcf4\uc874<br \/>\n-D \ub514\ubc14\uc774\uc2a4 \ud30c\uc77c\ubcf4\uc874(\ub8e8\ud2b8)<br \/>\n-z \ub370\uc774\ud130\uc555\ucd95 \uc804\uc1a1<br \/>\n-u \ucd94\uac00\ub41c \ud30c\uc77c\ub9cc \uc804\uc1a1<br \/>\n-b \ub0a1\uc740 \ud30c\uc77c\uc740 ~\uac00 \ubd99\uc74c<br \/>\n-u \uc0c8\ub85c\uc6b4 \ud30c\uc77c\uc744 \ub36e\uc5b4\uc4f0\uc9c0 \uc54a\uc74c<br \/>\n-c \uc11c\ubc84\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8 \ud30c\uc77c\ud06c\uae30\ub97c \uc138\ubc00\ud788 \uccb4\ud06c<br \/>\n-e ssh(rsh) \uc804\uc1a1\uc554\ud638\ud654<br \/>\n&#8211;existing : \ucd94\uac00\ub41c \ud30c\uc77c\uc740 \uc804\uc1a1\ud558\uc9c0\uc54a\uace0 \uac31\uc2e0\ub41c \ud30c\uc77c\ub9cc \uc804\uc1a1<br \/>\n&#8211;delete : \uc11c\ubc84\uc5d0 \uc5c6\ub294 \ud30c\uc77c\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c\ub3c4 \uc0ad\uc81c<br \/>\n&#8211;exclude &#8216;PATTERN&#8217; : \ud328\ud134\uacfc \ub9de\ub294 \ud30c\uc77c\ub9cc \uc804\uc1a1<br \/>\n&#8211;stats : \uacb0\uacfc\ub97c \ubcf4\uace0<br \/>\n&#8211;daemon : \ub300\ubaac\ubaa8\ub4dc\ub85c \uc6b4\uc601\ud568(\uc774\uac74 inetd.conf\uc5d0 \uc9c0\uc815\ud560 \ub54c \ud544\uc694\ud568)<\/p>\n<p>\u203b \ucc38\uace0\uc0ac\ud56d<br \/>\n\u261e -e \uc635\uc158\uc740 rsh\ub098 ssh\ub97c \uc0ac\uc6a9\ud560 \ub54c \uc368\uc8fc\ub294 \uc635\uc158\uc785\ub2c8\ub2e4.<br \/>\n\u261e 873\ud3ec\ud2b8\ub97c \uc0ac\uc6a9\ud560 \ub54c\ub294 :: \ub450 \uac1c\ub97c, rsh\ub098 ssh\ub97c \uc0ac\uc6a9\ud560 \ub54c\ub294 : \ud55c \uac1c\ub9cc \uc368\uc90d\ub2c8\ub2e4.<br \/>\n\u261e rsync -avz www1.linuxone.co.kr:home\/www1\/ \/home\/www2 \uc758 \ub0b4\uc6a9\uc740<br \/>\n\u261e www1.linuxone.co.kr\uc758\/home\/www1 \uc548\uc758 \ub0b4\uc6a9\uc744 \/home\/www2 \ub514\ub809\ud1a0\ub9ac\ub85c \uc62e\uae30\ub294<br \/>\n\uac83\uc778\ub370 \ub9cc\uc57d \/home\/www1\/ \ub77c\uace0\ud558\uba74 \uc6d0\ub798 www1\uc740 \uadf8 \ub514\ub809\ud1a0\ub9ac \uc790\uccb4\uae4c\uc9c0 \ud3ec\ud568\ud574\uc11c<br \/>\n\uac00\uc838\uc635\ub2c8\ub2e4. \uadf8\ub807\uc9c0\ub9cc www1 \ub4a4\uc5d0 \/ \uac00\ubd99\uc5b4\uc11c \/home\/www1\/ \ub77c\uace0 \ud45c\uc2dc\ud558\uba74 \uadf8 \ub514\ub809<br \/>\n\ud1a0\ub9ac\uc548\uc5d0 \uc788\ub294 \ub0b4\uc6a9\ub9cc \uac00\uc838\uc635\ub2c8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>rsync \uc0ac\uc6a9\ud558\uae30\u00a0 \u00a0http:\/\/dev.jpblog.co.kr\/21 Linux &amp; Solaris\u00a02009\/08\/04 05:34\u00a0posted by JP\u2122 \ubc31\uc5c5\ud558\uae30\uc5d0 \uc720\uc6a9\ud55c rsync\uc5d0 \ub300\ud574\uc11c \uc62c\ub824\ubd05\ub2c8\ub2e4~ \ubc31\uc5c5\uc5d0\ub294 \uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uaca0\uc9c0\ub9cc \uc5ec\uae30\uc120 \uac04\ub2e8\ud788 cron\uc744 \uc774\uc6a9\ud55c rsync \ubc31\uc5c5\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.rsync\ub780? rcp(remote file copy)\uc758 \uac15\ud654\ud615\uc73c\ub85c \u201crsync \uc54c\uace0\ub9ac\uc998\u201d \uc774\ub77c\ub294 \uc6d0\uaca9\uc0c1\uc758&#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,50],"class_list":["post-447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nas","tag-nas-2","tag-rsync"],"_links":{"self":[{"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/posts\/447","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=447"}],"version-history":[{"count":0,"href":"https:\/\/woori4.com\/index.php?rest_route=\/wp\/v2\/posts\/447\/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=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/woori4.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}