½Ã½ºÅÛ°ü¸®ÀÚÀÇ ½°ÅÍ Ä¿ÇǴнº Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
 FAQFAQ   °Ë»ö°Ë»ö   ¸â¹ö¸®½ºÆ®¸â¹ö¸®½ºÆ®   »ç¿ëÀÚ ±×·ì»ç¿ëÀÚ ±×·ì   »ç¿ëÀÚ µî·ÏÇϱâ»ç¿ëÀÚ µî·ÏÇϱâ 
 °³ÀÎ Á¤º¸°³ÀÎ Á¤º¸   ºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀºñ°ø°³ ¸Þ½ÃÁö¸¦ È®ÀÎÇÏ·Á¸é ·Î±×ÀÎÇϽʽÿÀ   ·Î±×Àηα×ÀΠ

°¡ÀÔ¾øÀÌ ´©±¸³ª ±ÛÀ» ¾µ ¼ö ÀÖ½À´Ï´Ù. °øÁö»çÇ׿¡ ´ëÇÑ ´ñ±Û±îÁöµµ..




BBS >> ¼³Ä¡, ¿î¿µ Q&A | ³×Æ®¿÷, º¸¾È Q&A | ÀÏ¹Ý Q&A || Á¤º¸¸¶´ç | AWS || ÀÚÀ¯°Ô½ÃÆÇ | ±¸Àα¸Á÷ || °øÁö»çÇ× | ÀÇ°ßÁ¦½Ã
cwrsync ¸¦ ÀÌ¿ëÇÑ À©µµ¿ì µð·ºÅ丮 ¹é¾÷

 
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> *NIX / IT Á¤º¸
ÀÌÀü ÁÖÁ¦ º¸±â :: ´ÙÀ½ ÁÖÁ¦ º¸±â  
±Û¾´ÀÌ ¸Þ½ÃÁö
jjun



°¡ÀÔ: 2009³â 12¿ù 10ÀÏ
¿Ã¸° ±Û: 8

¿Ã¸®±â¿Ã·ÁÁü: 2010.9.01 ¼ö, 4:18 pm    ÁÖÁ¦: cwrsync ¸¦ ÀÌ¿ëÇÑ À©µµ¿ì µð·ºÅ丮 ¹é¾÷ Àοë°ú ÇÔ²² ´äº¯

À©µµ¿ì ¸Ó½ÅÀ» ¸®´ª½º ¹é¾÷ ¼­¹ö¿¡ ¹é¾÷Çϱâ À§ÇÑ ¹æ¾ÈÀÔ´Ï´Ù.
°Ë»öÇÏ¸é µ¿ÀÏÇÑ ÀÚ·á°¡ ÀÖÁö¸¸, »ì¦ È¥µ¿µÇ´Â ºÎºÐÀÌ ÀÖ¾î °øÀ¯ÇÏ°íÀÚ Á¤¸®ÇÏ¿´½À´Ï´Ù.
Áß¿äÇÑ À©µµ¿ì ¸Ó½Åµµ ¹Ýµå½Ã ¹é¾÷À» ÇսôÙ. ¤Ð_¤Ð ¹é¾÷¸¸ÀÌ »ì±æ!!


cwrsync : http://www.itefix.no/i2/node/10650
Å×½ºÆ® ȯ°æ : cwrsync 4.0.5, Windows 7 64Bit
À©µµ¿ì ȯ°æ : ÄÄÇ»ÅÍ À̸§ÀÌ jjunÀÌ°í, »ç¿ëÀÚ°èÁ¤ À̸§µµ jjunÀÌ´Ù.
¸®´ª½º ȯ°æ : ¼­¹ö¸íÀº backup.crystaljjun.com ÀÌ°í, ¹é¾÷½Ã »ç¿ëÇÒ °èÁ¤Àº jjun ÀÌ´Ù.


0. ¹é¾÷ Á¶°Ç
0.1 ÃÖ´ëÇÑ °£´ÜÇÏ°í, °£ÆíÇÏ°Ô, ÀÚµ¿À¸·Î ¹é¾÷ÇÑ´Ù.


1. À©µµ¿ì ȯ°æ ¼³Á¤
1.1 ȯ°æº¯¼ö Path ¿¡ C:\Program Files (x86)\cwRsync\bin ¸¦ Ãß°¡ÇÑ´Ù. ±ò²ûÇÑ Àû¿ëÀ» À§ÇØ ÀçºÎÆÃÀ» ÇÑ´Ù.
1.2 ssh ¸¦ À§ÇÑ µð·ºÅ丮 »ý¼º ¹× ±ÇÇÑ ¼³Á¤
1.2.1 Administrator ±ÇÇÑÀ¸·Î Ž»ö±â¿¡¼­ C:\Program Files (x86)\cwRsync\home µð·ºÅ丮¸¦ ¸¸µç ÈÄ cwrsync¸¦ »ç¿ëÇÒ userÀÇ(jjun) °èÁ¤À» Ãß°¡ÇÏ°í ¸ðµç ±ÇÇÑÀ» Ãß°¡ ÇÑ´Ù.
1.2.2 jjun ±ÇÇÑÀ¸·Î C:\Program Files (x86)\cwRsync\home\jjun µð·ºÅ丮¸¦ ¸¸µç´Ù.


2. »ç¿ëÀÚ ssh key ÀÎÁõÀ» À§ÇÑ key »ý¼º
2.1 cd C:\Program Files (x86)\cwRsync\bin
ssh-keygen -P ""

ÄÚµå:
C:\Program Files (x86)\cwRsync\bin>ssh-keygen.exe -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jjun/.ssh/id_rsa):
Created directory '/home/jjun/.ssh'.
Your identification has been saved in /home/jjun/.ssh/id_rsa.
Your public key has been saved in /home/jjun/.ssh/id_rsa.pub.
The key fingerprint is:
06:40:14:d9:b6:b5:fe:54:f4:5a:08:83:ac:be:4c:32 jjun@jjun-PC
The key's randomart image is:
+--[ RSA 2048]----+
|   o=+ . .       |
|    ..o + o .    |
|     ..+ . + o   |
|      o..   o o  |
|     . .S  . o   |
|    E o.. . .    |
|     = . o       |
|      o   .      |
|                 |
+-----------------+


C:\Program Files (x86)\cwRsync\home\jjun\.ssh>cd
C:\Program Files (x86)\cwRsync\home\jjun\.ssh

C:\Program Files (x86)\cwRsync\home\jjun\.ssh>dir
 C µå¶óÀ̺êÀÇ º¼·ý¿¡´Â À̸§ÀÌ ¾ø½À´Ï´Ù.
 º¼·ý ÀÏ·Ã ¹øÈ£: 823F-A952

 C:\Program Files (x86)\cwRsync\home\jjun\.ssh µð·ºÅ͸®

2010-09-01  ¿ÀÀü 10:09    <DIR>          .
2010-09-01  ¿ÀÀü 10:09    <DIR>          ..
2010-09-01  ¿ÀÀü 10:09             1,679 id_rsa
2010-09-01  ¿ÀÀü 10:09               406 id_rsa.pub
               2°³ ÆÄÀÏ               2,085 ¹ÙÀÌÆ®
               2°³ µð·ºÅ͸®  186,038,353,920 ¹ÙÀÌÆ® ³²À½



3. PC¿¡¼­ »ý¼ºÇÑ public key¸¦ backup ¼­¹ö¿¡ µî·ÏÇÑ´Ù.
¼­¹ö¿¡ jjunÀ̶ó´Â °èÁ¤À» ¸¸µé°í PC¿¡¼­ ÀÚµ¿ ·Î±×ÀÎµÇ°Ô ¼³Á¤ÇÒ °ÍÀÌ´Ù.
3.1 useradd -m -s /bin/false jjun ¸¦ ½ÇÇàÇÏ¿© °èÁ¤À» »ý¼ºÇÑ´Ù.
3.2 PCÀÇ id_rsa.pub ÀÇ ³»¿ëÀ» ~jjun /.ssh/authorized_keys ¿¡ Ãß°¡ÇÑ´Ù.
3.3 ssh ¸í·ÉÀ¸·Î Æнº¿öµå ÀԷ°úÁ¤ ¾øÀÌ µÈ´Ù¸é Á¤»óÀÌ´Ù.
3.4 ¸¸¾à ¹®Á¦°¡ »ý±ä´Ù¸é C:\Users\jjun\.ssh µð·ºÅ丮¿¡ C:\Program Files (x86)\cwRsync\home\jjun\.ssh µð·ºÅ丮ÀÇ ÆÄÀÏÀ» º¹»çÇÑ´Ù.

ÄÚµå:
C:\Program Files (x86)\cwRsync\bin>ssh -p 8022 jjun@backup.crystaljjun.com

Linux backup 2.6.18-6-amd64 #1 SMP Wed Oct 15 10:07:11 UTC 2008 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Sep  1 13:31:22 2010 from 210.125.64.251
jjun@backup:~$ exit
logout
Connection to backup.crystaljjun.com closed.



4. ÀÚµ¿ ½ÇÇàÀ» À§ÇÑ cmd ÆÄÀÏ ÀÛ¼º
»ùÇà cwrsync.cmd¸¦ jjun.cmd·Î º¹»çÇÏ¿© ¸¶Áö¸· ÁÙ¿¡ ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºÇÑ´Ù.
4.1 Âü°í·Î C:\Program Files ó·³ °æ·Î¿¡ °ø¹éÀÌ ÀÖ´Â °æ¿ì "/cygdrive/c/Program Files/" ó·³ Å«µû¿ÈÇ¥·Î ¹­¾îÁÖ¸é µÈ´Ù.


# ¹é¾÷À» ÇÏ°í rsync log¸¦ ÀÛ¼ºÇÑ´Ù.
ÄÚµå:
rsync -avrz --progress --delete --log-file=C:\Users\jjun\jjun_backup.log -e 'ssh -p 8022' "/cygdrive/c/Program Files/windows/TMP/" jjun@backup.crystaljjun.com:/data/jjun_windowsdata/TMP/
# À§¿¡¼­ ÀÛ¼ºÇÑ rsync logµµ ¹é¾÷¼­¹ö·Î º¹»çÇÑ´Ù.
ÄÚµå:
rsync -avrz --progress --delete -e 'ssh -p 8022' "/cygdrive/c/Users/jjun/jjun_backup.log" jjun@backup.crystaljjun.com:/data/jjun_windowsdata/TMP/




5. ÀÚµ¿ ½ÇÇà ½ºÄÉÁÙ Ãß°¡

5.1 "ÀÛ¾÷ ½ºÄÉÁÙ·¯" ¸¦ ½ÇÇàÇÑ´Ù.
5.2 ÇÁ·Î±×·¥ µ¿ÀÛÀº "C:\Program Files (x86)\cwRsync\jjun.cmd" ·Î ÇÏ°í, Æ®¸®°Å´Â 1ÀÏ µ¿¾È 5ºÐ(¶Ç´Â ¿øÇÏ´Â ´ë·Î) ¸¶´Ù ¹Ýº¹À¸·Î ¼³Á¤ÇÑ´Ù.


6. ¹Ýµå½Ã ¹é¾÷ÀÌ Á¤»óÀûÀ¸·Î µÇ´ÂÁö, ÀÛ¾÷ ½ºÄÉÁÙ·¯°¡ µ¿ÀÛÇÏ´ÂÁö¸¦ ÀçºÎÆÃÇÑÈÄ¿¡ È®ÀÎÇÑ´Ù.



7. Ãß°¡ÇÒ ³»¿ë
7.1 rsync ·Î±×ÆÄÀÏ À̸§¿¡ ³¯Â¥¸¦ Ãß°¡ÇÏ¿© ¹é¾÷ÇÏÀÚ.
7.2 ssh·Î system¿¡ ·Î±×ÀÎÀÌ ¾ÈµÇ°Ô Çϸ鼭 ¹é¾÷ÇÒ ¼ø ¾øÀ»±î?

ÂüÁ¶ : http://blog.naver.com/junix/80113068241
À§·Î
»ç¿ëÀÚ Á¤º¸ º¸±â ºñ¹Ð ¸Þ½ÃÁö º¸³»±â
jjun



°¡ÀÔ: 2009³â 12¿ù 10ÀÏ
¿Ã¸° ±Û: 8

¿Ã¸®±â¿Ã·ÁÁü: 2011.12.02 ±Ý, 4:07 pm    ÁÖÁ¦: rdiff-backup¸¦ ÀÌ¿ëÇÑ MSÀ©µµ¿ì¿¡¼­ÀÇ ÀÚ·á ¹é¾÷ Àοë°ú ÇÔ²² ´äº¯

¹ú½á Àú »ðÁúÀ» ÇÑ°Ô 1³âÀü À̾߱âÀ̳׿ä.
À̹ø¿¡´Â rdiff-backupÀ̶ó´Â °ÍÀ¸·Î À©µµ¿ì PCÀÇ ÀڷḦ ¹é¾÷Çϵµ·Ï Çغ¸¾Ò½À´Ï´Ù.
cwrsync¿Í ºñ±³ÇÏ¿© ÁÁÀº Á¡Àº ÁõºÐ ¹é¾÷º°·Î º¹±¸°¡ °¡´ÉÇÕ´Ï´Ù. ±×¿Ü¿¡´Â µÑ´Ù rsync¸¦ ±â¹ÝÀ¸·Î Çϱ⶧¹®¿¡ ºñ½ÁÇÕ´Ï´Ù.

ÀÚ¼¼ÇÑ ³»¿ëÀº Á¦ ºí·Î±×¸¦ ÂüÁ¶ÇØÁÖ¼¼¿ä.
http://crystaljjun.kr/?p=524
À§·Î
»ç¿ëÀÚ Á¤º¸ º¸±â ºñ¹Ð ¸Þ½ÃÁö º¸³»±â
ÀÌÀü ±Û Ç¥½Ã:   
±Û ¾²±â   ´äº¯ ´Þ±â    Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ °Ô½ÃÆÇ À妽º -> *NIX / IT Á¤º¸ ½Ã°£´ë: GMT + 9 ½Ã°£(Çѱ¹)
ÆäÀÌÁö 1 Áß 1

 
°Ç³Ê¶Ù±â:  
»õ·Î¿î ÁÖÁ¦¸¦ ¿Ã¸± ¼ö ÀÖ½À´Ï´Ù
´ä±ÛÀ» ¿Ã¸± ¼ö ÀÖ½À´Ï´Ù
ÁÖÁ¦¸¦ ¼öÁ¤ÇÒ ¼ö ¾ø½À´Ï´Ù
¿Ã¸° ±ÛÀ» »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù
ÅõÇ¥¸¦ ÇÒ ¼ö ¾ø½À´Ï´Ù


Powered by phpBB © 2001, 2005 phpBB Group