´ÙÀ½ ÀÌÀü Â÷·Ê

4. RSYNC ¼­¹ö¸¦ Á÷Á¢ ¿î¿µÇϱâ

À§¿Í °°Àº ÀÛ¾÷ÀÌ ³¡³ª¸é °ø½Ä CD À̹ÌÁö ÆÄÀÏÀÇ »ý¼ºÀÌ ³¡³­´Ù. ±×·¯¸é ´Ù¸¥ »ç¶÷À» À§ÇØ Á÷Á¢ rsync ¹Ì·¯¸¦ ¿î¿µÇÏ´Â °Íµµ ÁÁÀº ¹æ¹ýÀÌ´Ù. ÀÌ·¯ÇÑ ¹Ì·¯ ¿î¿µÀº °£´ÜÇÏ°í, ½Ã½ºÅÛ¿¡ Å« ºÎÇϸ¦ ÁÖÁöµµ ¾Ê´Â´Ù.

¸ðµç °ø½Ä À̹ÌÄ¡ ÆÄÀÏÀÌ ¾ø¾îµµ µÈ´Ù; binary-i386 À̹ÌÁö¸¸ À־ ÁÁ´Ù.

°ø½Ä À̹ÌÁö°¡ /var/tmp/debian-cd/2.1/i386/binary-i386-1.iso ¿Í °°ÀÌ ÀÖ´Ù°í °¡Á¤ÇÏÀÚ. ±×¸®°í /etc/rsyncd.conf ÆÄÀÏÀ» ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ÇÏ¸é µÈ´Ù.

--- Àý´Ü ---

uid = 65534

gid = 65534

[debian-cd]

path = /var/tmp/debian-cd

comment = Debian CD images

--- Àý´Ü ---

(`man rsyncd.conf'¸¦ Çغ¸¸é ´õ ÀÚ¼¼ÇÑ ¼³¸íÀ» ¾Ë ¼ö ÀÖ´Ù.)

±×¸®°í ¾Æ·¡¿Í °°Àº ¸í·ÉÀ¸·Î (·çÆ® ±ÇÇÑ) rsync ¼­¹ö¸¦ ÀÛµ¿ÇÏ¸é µÈ´Ù.

nice -15 rsync --daemon

ÀÌ°ÍÀÌ ÀüºÎ´Ù.

±×¸®°í ³ª¼­ ¾Æ·¡¿Í °°ÀÌ Á¦´ë·Î ÀÛµ¿ÇÏ´ÂÁö È®ÀÎÇÒ ¼ö ÀÖ´Ù. (·çÆ®°¡ ¾Æ´Ô)

rsync localhost::

±×·¯¸é `debian-cd'¶ó´Â ¼­ºñ½º°¡ ÀÖ´Ù´Â °ÍÀÌ ¸®ÅϵǾî¾ß ÇÑ´Ù. ±×¸®°í

rsync --dry-run localhost::debian-cd/\*

À̶ó°í Ä¡¸é, `2.1'À̶ó´Â µð·ºÅ丮°¡ ¸®ÅϵǾî¾ß ÇÑ´Ù.

¸¸¾à ºÎÆÃÇÒ ¶§¸¶´Ù rsync ¼­¹ö¸¦ ½ÇÇàÇÏ°í ½ÍÀ¸¸é, ¾Æ·¡ÀÇ ¸í·ÉÀ» ½ºÅ¸Æ®¾÷ ½ºÅ©¸³Æ®(Startup Scripts)¿¡ Ãß°¡ÇÏ¸é µÈ´Ù. (µ¥ºñ¾È ½Ã½ºÅÛ¿¡¼­´Â, /etc/init.d/netstd.misc°¡ µÈ´Ù)

nice -15 rsync --daemon

¸¸¾à rsync ¼­¹ö°¡ ÀÛµ¿ÇÑ´Ù¸é ¾Æ·¡ÀÇ ÁÖ¼Ò·Î ¸ÞÀÏÀ» º¸³»¸é µÈ´Ù.

debian-cd@lists.debian.org

±×·¯¸é ¹Ì·¯ ÁÖ¼Ò ¸®½ºÆ®¿¡ ÀÚ½ÅÀÇ ÁÖ¼Ò°¡ µî·ÏµÈ´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê