· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
rsync


1. rysnc ÆÁ

1.1. root ±ÇÇÑ ÇÊ¿äÇÑ ÆÄÀÏ µ¿±âÈ­ ÇÒ ¶§

µÎ °¡Áö ¹æ¹ýÀÌ ÀÖ´Ù.
  1. ssh root Á¢¼Ó Çã¿ë ÇϵÇ, Å° ÀÎÁõ¸¸ Çã¿ë
    1. /etc/ssh/sshd_config ÆÄÀÏ¿¡¼­ PermitRootLogin without-password À¸·Î ¼³Á¤
    2. ÀÌ·¸°Ô ¼³Á¤Çϸé /root/.ssh/authorized_keys ¿¡ °ø°³Å° µî·ÏµÈ »ç¿ëÀÚ¸¸ root Á¢±Ù °¡´É
  2. sudoer¿Í --rsync-path ¿É¼Ç °°ÀÌ »ç¿ë
    1. ¿ø°ÝÁö¿¡ Á¢¼ÓÇÏ´Â »ç¿ëÀÚ¿¡°Ô sudoer µî·ÏÀ» ÇØ root ±ÇÇÑÀ» »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÑ µÚ, rsync -avz --progress --rsync-path="sudo rsync" ... ÀÇ ½ÄÀ¸·Î »ç¿ë.
    2. [http]Âü°í

1.2. ¿ø°ÝÁö µð·ºÅ丮 ½Éº¼¸¯ ¸µÅ©¸¦ À¯ÁöÇÏ°í ½ÍÀº °æ¿ì

-K ¿É¼ÇÀ» »ç¿ë, -a ¿É¼ÇÀ» ¾²¸é ¾È µÇ±â ¶§¹®¿¡ -urvK µîÀ¸·Î »ç¿ëÇØ¾ß ÇÑ´Ù.

1.3. µ¿±âÈ­ÇÒ ¸ñ·ÏÀ» Ç¥ÁØ ÀÔ·ÂÀ¸·Î ¹Þ°í ½ÍÀº °æ¿ì

<del>files-from ¿É¼ÇÀ» È°¿ë, </del>files-from=- ÀÌ·¸°Ô ¾²¸é µÈ´Ù.

ls /home | rsync -av --files-from=- /home /var

2. ssh·Î rsync ÇÒ ¶§ Æ÷Æ® ¹øÈ£ ÁöÁ¤ÇÏ´Â ¹æ¹ý

2222¹ø Æ÷Æ®¸¦ »ç¿ëÇÒ °æ¿ì --rsh='ssh –p2222'

¿¹¸¦ µé¸é rsync -avz --progress --rsh='ssh –p26' /home/ /var/

3. rsync ¼ÓµµÁ¦ÇÑ

--bwlimit=KBPS          limit I/O bandwidth; KBytes per second
rsync -avz --bwlimit=100 --progress --rsh='ssh –p22' /home/ root@kldp.org:/

4. ÀÎÄÚµùÀÌ ´Ù¸¥ ½Ã½ºÅÛ³¢¸® µ¿±âÈ­ÇÒ ¶§ ¸ÖƼ¹ÙÀÌÆ®(ÇѱÛ) ±úÁö´Â °æ¿ì

ÀÎÄÚµùÀ» ÁöÁ¤ÇØÁÖ¸é µÊ --iconv=CONVERT_SPEC request charset conversion of filenames ÀÌ ¿É¼ÇÀº ÀÏÁ¤ ¹öÀü ÀÌ»ó µÇ¾î¾ß ÀÖÀ½(Á¤È®ÇÑ ¹öÀüÀº ¡¦¸ð¸£°ÚÀ½)

rsync –av --iconv=utf-8,cp949 /home/ root@:b.com:/home/ ¿©·¯ °³ ÀûÀ» ¼ö ÀÖ´Ù. ÀÌ °æ¿ì utf-8À» ¾²´Â a.com¿¡¼­ cp949¸¦ ¾²´Â b.comÀ¸·Î ½ÌÅ©¸¦ ÇÏ´Â ¹æ¹ý (¡¦ ¹Ý´ë ÀÏ ¼ö ÀÖÀ½)

5. °ü·Ã¹®¼­


Ʋ¸° Á¡ÀÌ ÀÖÀ¸¸é ¼öÁ¤ ¹Ù¶ø´Ï´Ù.

ID
Password
Join
You will be married within a year.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2014-06-12 16:22:19
Processing time 0.0049 sec