The Linux System Administrators' Guide: ¸®´ª½º ½Ã½ºÅÛ °ü¸®ÀÚ °¡À̵å Version 0.6.2 | ||
---|---|---|
Prev | Chapter 10. ¹é¾÷ | Next |
´Ü¼ø ¹é¾÷ ¹æ½ÄÀ̶ó´Â °ÍÀº, ¸ÕÀú ¸ðµç °ÍÀ» ÇѲ¨¹ø¿¡ ¹é¾÷ÇÏ°í ±× ´ÙÀ½ºÎÅÍ´Â ¾Õ¼± ¹é¾÷¿¡¼ º¯°æµÈ ºÎºÐ¸¸À» °ñ¶ó ¹é¾÷ÇÏ´Â °ÍÀ» ¸»ÇÑ´Ù. ¿©±â¼ ¸Ç óÀ½ ÇÏ´Â ¹é¾÷À» ful backup(¿ÏÀü ¹é¾÷)À̶ó°í Çϸç, ±× ´ÙÀ½ºÎÅÍ´Â incremental backups(º¯°æºÐ ¹é¾÷) À̶ó°í ÇÑ´Ù. º¸Åë Ç® ¹é¾÷Àº ¾çÀÌ ¸¹±â ¶§¹®¿¡, ¿©·¯ÀåÀÇ Ç÷ÎÇÇ¿Í Å×ÀÌÇÁ¸¦ »ç¿ëÇؾßÇÏ´Â °íµÈ ÀÛ¾÷ÀÌ µÈ´Ù. ¹Ý¸é¿¡, Ç® ¹é¾÷À» ÇØµÎ¸é º¹¿øÇϱâ´Â º¯°æºÐ ¹é¾÷º¸´Ù ÈξÀ ½±´Ù. Ç® ¹é¾÷ ÀÌÈÄ¿¡µµ ¾ðÁ¦³ª ¸ðµç °ÍÀ» ¹é¾÷ÇØ µÎµµ·Ï ÇÏ¸é º¹¿ø ÀÛ¾÷Àº Á» ´õ È¿À²ÀûÀÏ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ´Ù¸¸ ÀÌ·¸°Ô Çϸé ÀÏÀÌ Á» ¸¹¾ÆÁö´Âµ¥, ¹°·Ð Ç® ¹é¾÷°ú º¯°æºÐ ¹é¾÷À» »ç¿ëÇؼ º¹¿øÇÒ ¶§ÀÇ ÀÛ¾÷·®º¸´Ùµµ ´õ °úÁßÇÑ ÀÛ¾÷À» Çϸ鼱îÁö ÀÌ·¸°Ô ÇÒ ÇÊ¿ä´Â ¾ø´Ù.
¸¸ÀÏ Å×ÀÌÇÁ 6°³·Î ¸ÅÀÏ ¹é¾÷À» ÇÏ°í ½Í´Ù¸é, ÇÏ·ç(±Ý¿äÀÏ °°Àº ³¯¿¡)´Â 1¹ø Å×ÀÌÇÁ·Î Ç® ¹é¾÷À» ÇÏ°í 2-5¹ø Å×ÀÌÇÁ·Î´Â º¯°æºÐ ¹é¾÷(¿ù¿äÀÏ¿¡¼ ¸ñ¿äÀϱîÁö)À» ÇÏ´Â ¹æ¹ýÀ» »ý°¢ÇØ º¼ ¼ö ÀÖ´Ù(Åä¿äÀÏ°ú ÀÏ¿äÀÏÀº ½®´Ù). ±×¸®°í ±× ´ÙÀ½ÁÖ ±Ý¿äÀÏ¿¡´Â 6¹ø Å×ÀÌÇÁ¿¡ »õ·Î Ç® ¹é¾÷À» ¹Þ°í, ¿ª½Ã 2-5¹ø Å×ÀÌÇÁ·Î º¯°æºÐ ¹é¾÷À» ¹Þµµ·Ï ÇÑ´Ù. 6¹ø Å×ÀÌÇÁ¿¡ »õ·Î Ç® ¹é¾÷À» ¹Þ¾Ò´ÙÇÏ´õ¶óµµ 1¹ø Å×ÀÌÇÁÀÇ Ç® ¹é¾÷À» Áö¿ö¼´Â ¾ÈµÇ¸ç, 1¹ø Å×ÀÌÇÁ´Â ¸ÖÂġ ´Ù¸¥ Àå¼Ò¿¡ Àß º¸°üÇØ µÎµµ·Ï ÇÑ´Ù. ÀÌ·¸°Ô Çصθé, ºÒÀÌ ³ª¼ ´Ù¸¥ Å×ÀÌÇÁ°¡ ´Ù Ÿ¹ö¸°´Ù°í Çصµ 1¹ø Å×ÀÌÇÁ·Î ¹º°¡ º¹±¸¸¦ ½ÃµµÇØ º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ¸¶Âù°¡Áö ¹æ¹ýÀ¸·Î, ´Ù½Ã ÇÑ ÁÖ°¡ Áö³ª°í »õ Ç® ¹é¾÷À» ¹ÞÀ» ¶§¿¡´Â 1¹ø Å×ÀÌÇÁ¿¡ ¹Þµµ·Ï ÇÏ°í 6¹ø Å×ÀÌÇÁ¸¦ º¸°üÇÏ¸é µÈ´Ù.
Å×ÀÌÇÁ°¡ 6°³ ÀÌ»ó ÀÖ´Â °æ¿ì¿¡´Â, ³²´Â Å×ÀÌÇÁ¸¦ ¸ðµÎ Ç® ¹é¾÷¿¡ »ç¿ëÇϵµ·Ï ÇÑ´Ù. ±×¸®°í »õ·Î Ç® ¹é¾÷À» ¹ÞÀ» ¶§´Â ±×Áß¿¡¼ ¹é¾÷ ¹ÞÀº Áö °¡Àå ¿À·¡µÈ Å×ÀÌÇÁ¸¦ »ç¿ëÇÑ´Ù. ÀÌ·¸°Ô ÇÏ¸é »ó´çÈ÷ ¿À·¡ÀüÀÇ Ç® ¹é¾÷º»À» °¡Áú ¼ö ÀÖ°Ô µÇ¹Ç·Î, ¿¾³¯¿¡ Áö¿öÁø ÆÄÀϵ鵵 º¹±¸ÇÒ ¼ö°¡ ÀÖ°Ô µÈ´Ù.
tar¸¦ »ç¿ëÇϸé Ç® ¹é¾÷À» ½±°Ô ÇÒ ¼ö ÀÖ´Ù.
# tar --create --file /dev/ftape /usr/src tar: Removing leading / from absolute path names in the archive # |
¸¸ÀÏ ¹é¾÷ÀÌ ÇÑ °³ Å×ÀÌÇÁ¿¡ ´Ù µé¾î°¡Áö ¾Ê´Â´Ù¸é, multi-volume (-M) ¿É¼ÇÀ» »ç¿ëÇÏ¸é µÈ´Ù:
# tar -cMf /dev/fd0H1440 /usr/src tar: Removing leading / from absolute path names in the archive Prepare volume #2 for /dev/fd0H1440 and hit return: # |
¹é¾÷À» ¹Þ°í ³ª¼´Â ±×°ÍÀÌ Á¦´ë·Î µÇ¾ú´ÂÁö È®ÀÎ, ºñ±³¸¦ ÇØ¾ß ÇÑ´Ù. --compare (-d) ¿É¼ÇÀ» »ç¿ëÇÏÀÚ.
# tar --compare --verbose -f /dev/ftape usr/src/ usr/src/linux usr/src/linux-1.2.10-includes/ .... # |
--newer (-N) ¿É¼ÇÀ» »ç¿ëÇϸé, tar¸¦ »ç¿ëÇØ º¯°æºÐ ¹é¾÷À» ÇÒ ¼ö ÀÖ´Ù.
# tar --create --newer '8 Sep 1995' --file /dev/ftape /usr/src --verbose tar: Removing leading / from absolute path names in the archive usr/src/ usr/src/linux-1.2.10-includes/ usr/src/linux-1.2.10-includes/include/ usr/src/linux-1.2.10-includes/include/linux/ usr/src/linux-1.2.10-includes/include/linux/modules/ usr/src/linux-1.2.10-includes/include/asm-generic/ usr/src/linux-1.2.10-includes/include/asm-i386/ usr/src/linux-1.2.10-includes/include/asm-mips/ usr/src/linux-1.2.10-includes/include/asm-alpha/ usr/src/linux-1.2.10-includes/include/asm-m68k/ usr/src/linux-1.2.10-includes/include/asm-sparc/ usr/src/patch-1.2.11.gz # |
tarÀÇ --extract ( -x) ¿É¼ÇÀ» »ç¿ëÇϸé ÆÄÀϵéÀ» ÃßÃâÇØ ³¾ ¼ö ÀÖ´Ù.
# tar --extract --same-permissions --verbose --file /dev/fd0H1440 usr/src/ usr/src/linux usr/src/linux-1.2.10-includes/ usr/src/linux-1.2.10-includes/include/ usr/src/linux-1.2.10-includes/include/linux/ usr/src/linux-1.2.10-includes/include/linux/hdreg.h usr/src/linux-1.2.10-includes/include/linux/kernel.h ... # |
# tar xpvf /dev/fd0H1440 usr/src/linux-1.2.10-includes/include/linux/hdreg.h usr/src/linux-1.2.10-includes/include/linux/hdreg.h # |
# tar --list --file /dev/fd0H1440 usr/src/ usr/src/linux usr/src/linux-1.2.10-includes/ usr/src/linux-1.2.10-includes/include/ usr/src/linux-1.2.10-includes/include/linux/ usr/src/linux-1.2.10-includes/include/linux/hdreg.h usr/src/linux-1.2.10-includes/include/linux/kernel.h ... # |
¶ÇÇÑ tar´Â Áö¿ö¹ö¸° ÆÄÀϵéÀ» Á¦´ë·Î ´Ù·çÁö ¸øÇÑ´Ù. ¸¸¾à Ç® ¹é¾÷º» Çϳª¿Í º¯°æºÐ ¹é¾÷º» Çϳª¸¦ °¡Áö°í º¹¿ø ÀÛ¾÷À» ÇÑ´Ù°í ÇßÀ» ¶§, µÎ ¹é¾÷º» »çÀÌ¿¡ Áö¿ö¹ö¸° ÆÄÀÏÀÌ ÀÖ´Ù¸é ±× ÆÄÀÏÀº ´Ù½Ã º¹¿øµÇ¾î ³ªÅ¸³ª°Ô µÈ´Ù. ÀÌ·¸°Ô ²À Áö¿öÁ³¾ß¸¸ ÇÏ´Â ¹Î°¨ÇÑ ÆÄÀϱîÁöµµ ´Ù½Ã º¹¿øµÈ´Ù´Â »ç½ÇÀº Å« ¹®Á¦¶ó°í ÇÒ ¼ö ÀÖ´Ù.