¡¤¹é¾÷ ¸í·É¾îÀÇ Á¾·ù
ufsdump/ufsrestore : ÆÄÀÏ ½Ã½ºÅÛÀÌ ¿©·¯ °³ÀÇ ¹é¾÷ º¼·ý¿¡ ÀúÀåµÇ°Ô ÇÑ´Ù. ƯÈ÷ ÀüüÀûÀÌ°í Áõ°¡ÀûÀÎ ¹é¾÷À» ÇÒ
¼ö ÀÖ°Ô ÇÏÁö¸¸, °³°³ÀÇ ÆÄÀÏÀ» Àç»ýÇϱâ´Â ±î´Ù·Ó´Ù.
/etc/dumpdates : u ¿É¼ÇÀ» »ç¿ëÇÒ ¶§ ¼º°îÀûÀÎ ´ýÇÁ ·¹º§¿¡ ´ëÇÑ Á¤º¸¸¦ °¡Áö°í ÀÖ´Ù.
ufsdump options [ arguments ] files_to_dump
options
0-9
|
dump level ¿É¼ÇÀ» Á¤ÀÇ. ·¹º§ 0´Â °¡Àå ³·Àº ·¹º§ÀÌ°í, ·¹º§ 9´Â °¡Àå ³ôÀº ·¹º§ÀÌ´Ù. |
a
|
Å×ÀÙ¿¡ ´ýÇÁµÇ¾îÁú ÆÄÀÏÀÇ on-line archive¸¦ »ý¼ºÇÑ´Ù. |
f
|
ÆÄÀÏÀÌ ¾²¿©Áú µð¹ÙÀ̽º¸¦ ±ÔÁ¤, µð¹ÙÀ̽º À̸§ÀÎ ÀÎÀÚ°¡ ÇÊ¿äÇÏ´Ù. |
u
|
³¯Â¥¸¦ °¡Áø ´ýÇÁ ·¹ÄÚµå(/etc/dumpdates)¿Í ÀÌ ÆÄÀϽýºÅÛ ¹é¾÷ÀÇ ´ýÇÁ ·¹º§À» °»½Å |
c
|
Ä«Æ®¸®Áö Å×ÀÙ¿¡ ´ýÇÁÇÏ°í blocking factor¸¦ 126 blocksÀ¸·Î set |
files_to_dump
|
files_to_dump´Â row³ª block ÆÄÀÏ ½Ã½ºÅÛ µð¹ÙÀ̽º¸í(/dev/rdsk/c0t0d0s0),
ÆÄÀÏ ½Ã½ºÅÛ¸í(/export/home), ȤÀº ile À̳ª µð·ºÅ丮¸í(/export/home/lister) ÀÏ ¼ö ÀÖ´Ù. |
blocking factor´Â inter-block gapÀ» »ðÀÔ Àü¿¡ ¾²¿©Áú Å×ÀÙ ºí·°(512bytes)ÀÇ ¼öÀÌ´Ù.
ufsdump°¡ µ¶¸³ÀûÀÎ files¾Æ´Ï µð·ºÅ丮ÀÇ ¹é¾÷¿¡ »ç¿ë½Ã, ´ýÇÁ ·¹º§Àº 0À¸·Î ¼¼Æ® µÇ¾îÁø´Ù.
¿¹Á¦ :
# ufsdump 0uf /dev/rmt/0 /export/home
// Å×ÀÙ µå¶óÀ̺긦 »ç¿ëÇÏ¿© /export/homeÀ» full dump Çϱâ À§ÇØ »ç¿ëÇÏ´Â ¹æ¹ý
# ufsdump 0ucsf /dev/rmt/0 /export/home
// s¿Í c ¿É¼ÇÀº Å×ÀÙ µð¹ÙÀ̽º¿¡¼ full dump ¼öÇà¿¡ ÇÊ¿äÇÑ tape ¹øÈ£¸¦ ³ªÅ¸³½´Ù.
ufsrestore options [ arguments ] [ filename ... ]
options
t
|
¹é¾÷ÀÇ ¸ñ·Ï Å×À̺í Ãâ·Â |
x
|
¸í·É¾î ¶óÀο¡ ¸í¸íµÈ ÆÄÀϸ¸ ÃßÃâ |
r
|
¸ðµç ¹é¾÷À» restore |
i
|
´ëÈÇü restore¸¦ ¼öÇà |
archive_file
|
tapeº¸´Ù archive ÆÄÀÏ·Î ¸í¸íµÈ °ÍÀ¸·ÎºÎÅÍÀÇ Á¤º¸ Å×À̺íÀ» °¡Áø´Ù. ½ÇÁúÀûÀ¸·Î ÆÄÀÏÀ»
Ç®±â±îÁö´Â ¹é¾÷ º¼·ýÀÌ mount µÉ ÇÊ¿ä´Â ¾ø´Ù. |
f dump_file
|
restore ÇÒ µð¹ÙÀ̽º·Î ´ýÇÁ ÆÄÀÏÀ» »ç¿ë |
v
|
restore µÇ´Â °ÍµéÀÇ Æнº¸íÀ» Ãâ·Â (verbose ¸ðµå) |
¿¹Á¦ :
1. ½´ÆÛ-À¯Àú°¡ µÈ´Ù.
2. Å×ÀÙ¿¡ ÇÊ¿äÇÑ ÆÄÀÏÀÌ ÀÖ´ÂÁö È®ÀÎÇϱâ À§ÇØ ¸ñ·Ï Ãâ·Â
# ufsrestore tvf /dev/rmt/0
2 .
3 ./lost+found
5120 ./export
10240 ./home
15360 ./opt
.
.
.
#
3. ÆÄÀÏ È®ÀÎÀÌ ³¡³ª°í °³º°ÀûÀÎ ÆÄÀÏ ÃßÃâ
# cd /var/tmp
# ufsrestore xvf /dev/rmt/0 ./etc/passwd
|