|
¸ñ·ÏÀ¸·Î °¡±â.. |
|
HP-UX ¿¡¼ System backup ¹× Backup ¹æ¹ý. |
±èÁ¾È£
|
»èÁ¦Çϱâ
|
|
- Full Backup --- Àüü FileÀÇ Backup - Delta Backup --- File SystemÀÇ ºÎºÐ Backup - BackupÀÇ ÁÖ±â´Â Åë»ó 1ȸ Full Backup / 1 Week Delta Backup / 1 Day·Î ÇÕ´Ï´Ù. BackupÀåºñ·Î´Â ÁÖ·Î DAT(Digital Audio Tape)¸¦ ÀÌ¿ëÇÕ´Ï´Ù.
±×·³ HP-UXÀÇ ¿©·¯°¡Áö Backup°ü·Ã ¸í·É¾î¸¦ »ìÆ캸µµ·Ï ÇÏ°Ù½À´Ï´Ù. 1.fbackup full backup°ú delta backupÀ» µÑ´Ù ÇÒ ¼ö ÀÖ´Â ±âº»ÀûÀÎ ¹æ¹ýÀÔ´Ï´Ù. »ó´çÈ÷ À¯¿¬Çؼ °¢ ½Ã½ºÅÛ °ü¸®ÀÚ°¡ ÇÊ¿äÇÑ Àåºñ¸¦ °¡Àå ¾Ë¸Â°Ô ¹é¾÷ÇÏ´Â °ÍÀ» °³¹ßÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. -Syntax # fbackup -f device [0-9] [-u] [-i path] [-e path] [-g graph]
-f device:Ãâ·ÂÀåÄ¡ÀÇ device file À̸§ [0-9] :backup level (default 0) 0 levelÀº Àüü BackupÀ» ¼öÇàÇÕ´Ï´Ù. [-u] :update [-i path]:backup½Ã Æ÷ÇԵǾîÁö´Â directory path [-e path]:backup½Ã Á¦¿ÜµÇ´Â directory path [-g path]:Backup¿¡¼ Æ÷ÇԵǰųª Á¦¿ÜµÈ fileÀ̳ª directoryÀÇ ¸ñ·ÏÀ» °®´Â fileÀÔ´Ï´Ù. [-I path]:file path¿¡ Àε¥½º(index)¸¦ ¾¹´Ï´Ù. 2.frecover fbackup¸í·É°ú »ó´ëÀûÀÎ ¸í·É¾î·Î¼ fbackupÀ¸·Î »ý¼ºµÈ ¹é¾÷µé·ÎºÎÅÍ fileÀ» Àç»ýÇÕ´Ï´Ù. -Syntax # frecover -r | -x [-g graph] [-f device] [-I path]
-r :¹é¾÷ º¼·ý¿¡ ÀÖ´Â °ÍÀ» ȸº¹ÇÕ´Ï´Ù. -x :¹é¾÷ º¼·ýÀ¸·Î ºÎÅÍ Æ¯Á¤ÇÑ fileÀ» ÃßÃâÇÕ´Ï´Ù. [-I path]:¹é¾÷ º¼·ýÀ¸·Î ºÎÅÍ »öÀÎÀ» ÀÐ°í °æ·Î¿¡ ¸ñÂ÷¸¦ ¾¹´Ï´Ù.
3.cpio fileÀÇ À̸§À» ÀÐÀº ÈÄ ÁöÁ¤µÈ Ãâ·ÂÀåÄ¡¿¡ backupÀ» ÇÕ´Ï´Ù. ±×·¯¹Ç·Î find¸í·É¾î¿Í ÇÔ²² »ç¿ëµË´Ï´Ù. -Syntax # cpio -0 [aABCxvCh] # cpio -i [BdcrtuxvmfPsSbRU] # cpio -p [aduxvlmrU] directory
ex> # find / -print : cpio -ocx > /dev/rmt/0m (backup) # cpio -icxvmd */users/* < /dev/rmt/0m (restore)
-o:Ç¥ÁØÀÔ·ÂÀ¸·ÎºÎÅÍ fileÀÇ À̸§À» ÀÐ¾î¼ Ç¥ÁØÃâ·Â¿¡ ÁöÁ¤µÈ fileÀÇ ³»¿ëÀ» backup -i:backupµÈ data¸¦ disk»ó¿¡ restore -p:backupµÈ data¸¦ disk»óÀÇ ´Ù¸¥ directory¿¡ restore -v:copyµÈ fileµéÀÇ list¸¦ terminal¿¡ display
3.tar °¡Àå ¸¹ÀÌ »ç¿ëÇÏ´Â backup¸í·É¾î ÀÔ´Ï´Ù. -Syntax # tar option [args] [file : -C directory] ex> # tar cvf /dev/rmt/0m filenam (backup) # tar xvf /dev/rmt/0m (restore) # tar rvf /dev/rmt/0m (append)
option -f device file:Ãâ·ÂÀåÄ¡ÀÇ device file name -c :create a new archive (»õ·Î¿î °á°ú¹°À» ¸¸µì´Ï´Ù) -r :append (°á°ú¹°ÀÇ ³¡¿¡ ÀÌ¾î¼ ºÙÀÔ´Ï´Ù) -x :extract (restore) -t :list (»ý¼º¹°ÀÇ ³»¿ëÀ» Å×ÀÌºí¿¡ ¿°Å ÇÕ´Ï´Ù) -v :verbose, type the name of each file affected
4.dd Disk¿Í Disk°£ÀÇ copy°¡ °¡Àå À¯¿ëÇÑ ddÀÇ ±â´ÉÁß ÇϳªÀÔ´Ï´Ù. dd´Â Á÷Á¢ÀûÀÎ image copy°¡ ¼öÇàµÇ±â ¶§¹®¿¡ bad block¿¡ copyµË´Ï´Ù. -Syntax # dd [option] ex> dd if=/dev/dsk/c201d6s0 of=/dev/rmt/c201d4s0 bs=nk (n=8,16,32 ...) SCSI 6¹ø disk¿¡¼ 5¹ø disk·Î disk copy
option -if = filename:input file name -of = filename:output file name -bs = rk :I/O°£ÀÇ block size -count = n :n input block¸¸ copy
|
|
|