¸î °¡Áö °¡Á¤À» ÇÏ°í ½ÇÁ¦ ¹é¾÷À» ÇØ º¸ÀÚ.
Amanda ÆÐŰÁö´Â 2Àý¿¡¼ ¼³¸íÇÑ´ë·Î configureÀÇ »ç¿ëÀÚ ¿É¼ÇÀ» ¹Ù²Ù¾î¼ ¼³Ä¡ÇÑ´Ù.
Å×ÀÙ ÀåÄ¡°¡ Á¦´ë·Î ÀÛµ¿ÇÑ´Ù.
Å×ÀÙ ÀåÄ¡´Â IBM 3581 autoloader¸¦ »ç¿ëÇÑ´Ù.
¹é¾÷À» ½ÇÇàÇÒ Å×ÀÙ¼¹öÀÇ »ç¿ëÀÚ´Â styooÀÌ´Ù.
SpaceWar¶ó´Â ÇÁ·ÎÁ§Æ®ÀÇ µ¥ÀÌŸ¸¦ ¹é¾÷ÇÑ´Ù.
Å×ÀÙ¼¹öÀÇ È£½ºÆ®³×ÀÓÀº backupsvrÀÌ´Ù.
ÇÁ·ÎÁ§Æ® SpaceWarÀÇ µ¥ÀÌŸ´Â ÆÄÀϼ¹ö gmfs1°ú gmfs2¿¡ ÀúÀåµÈ´Ù.
gmfs1ÀÇ OS´Â À©µµ¿ì 2000 ServerÀ̰í, gmfs2´Â ¸®´ª½ºÀÌ´Ù.
ÇÁ·ÎÁ§Æ® SpaceWar¿Í °ü·ÃµÈ °¢ ÆÄÀϼ¹öÀÇ µð·ºÅ丮´Â ¾Æ·¡¿Í °°´Ù.
gmfs1 : E:\SpaceWar1\Program-Sources
gmfs1 : E:\SpaceWar1\Graphic-Sources
gmfs2 : /SpaceWar2/Prototype
gmfs2 : /SpaceWar2/Schedule
|
gmfs1ÀÇ E:\SpaceWar1 µð·ºÅ丮¸¦ backupsvrÀÇ /SpaceWar1µð·ºÅ丮¿¡ SMB ¸¶¿îÆ®ÇÑ´Ù.
ÆÄÀϼ¹ö¿Í Å×ÀÙ¼¹ö´Â ¼·Î È£½ºÆ®³×ÀÓÀ» ¾Ë ¼ö ÀÖµµ·Ï /etc/hosts ÆÄÀÏ¿¡ ±â·ÏÇØ µÎ´Â °ÍÀÌ ÁÁ´Ù.
mailto "styoo"
dumpuser "styoo"
etimeout 3600
dtimeout 3600
tapedev "/dev/nst0"
tpchanger "mtx-changer"
tapetype IBM-LTO
columnspec "HostName=0:13,Disk=1:40,OrigKB=1:9,OutKB=1:9,DumpRate=1:7,TapeRate=1:7"
holdingdisk hd1 {
comment "main holding disk"
directory "/backup-image/Image"
use -10Mb
chunksize 0
}
define tapetype IBM-LTO {
comment "just produced by tapetype program"
length 101376 mbytes
filemark 0 kbytes
speed 13500 kps
}
define dumptype global {
program "GNUTAR"
compress server fast
index yes
record yes
}
|
autoloader¸¦ ±¸µ¿Çϴµ¥ »ç¿ëÇÒ mtx-changer ½ºÅ©¸³Æ®´Â mtx ÆÐŰÁö¿¡ Æ÷ÇԵǾî ÀÖ´Â °ÍÀ» »ç¿ëÇÏ¿´À¸³ª, IBM 3581 autoloader¿¡ Àû¿ëÇϱ⿡´Â ÀϺΠÀÛµ¿¿¡ ¹®Á¦°¡ ÀÖ¾î ÇÊÀÚ°¡ ÀϺθ¦ ¼öÁ¤ÇÏ¿´´Ù. ¼öÁ¤µÈ ½ºÅ©¸³Æ®´Â ¿¡ ÀÖÀ¸´Ï 10ÀýÀ» Âü°íÇϱ⠹ٶõ´Ù.
includefile "/etc/amanda/amanda.conf"
org "SpaceWar"
inparallel 4
runtapes 2
dumpcycle 4 weeks
runspercycle 4
tapecycle 4 tapes
maxdumps 4
labelstr "^SpaceWar-[0-9][0-9][0-9]*$"
infofile "/var/lib/amanda/SpaceWar/curinfo"
logdir "/var/log/amanda/SpaceWar/log"
indexdir "/var/lib/amanda/SpaceWar/index"
tapelist "/var/lib/amanda/SpaceWar/tapelist"
define dumptype always-full {
global
comment "Full dump of this filesystem always"
priority high
dumpcycle 0
}
define dumptype incr-only {
global
comment "Incremental dump only"
priority high
strategy nofull
}
|
localhost /SpaceWar1/Program-Sources always-full
localhost /SpaceWar1/Graphic-Sources always-full
gmfs2 /SpaceWar2/Prototype always-full
gmfs2 /SpaceWar2/Schedule always-full
|
/Spacewar1ÀÇ ÇÏÀ§ µð·ºÅ丮´Â À©µµ¿ì 2000 ¼¹öÀÎ gmfs1¿¡ ÀÖÀ¸¹Ç·Î samba¸¦ ÀÌ¿ëÇÏ¿© ¹é¾÷ÇØ¾ß ÇÑ´Ù. amanda´Â À©µµ¿ì ¸Ó½ÅÀÇ µ¥ÀÌŸ¸¦ ¹é¾÷Çϱâ À§ÇØ smbclient¸¦ »ç¿ëÇÏ¿© ¹é¾÷À» ÁøÇàÇÑ´Ù. ±×·¯³ª ±×·¸°Ô ÇÏÁö ¾Ê°í, À©µµ¿ìÀÇ µð½ºÅ©¸¦ Å×ÀÙ¼¹ö¿¡ SMB ¸¶¿îÆ®ÇÏ¿© ¸¶Ä¡ ·ÎÄõð½ºÅ©¸¦ ¹é¾÷ÇϵíÀÌ ÇÒ ¼öµµ ÀÖ´Ù. ¿©±â¼´Â SMB ¸¶¿îÆ®ÇÏ¿© ·ÎÄõð½ºÅ©¸¦ ¹é¾÷ÇϵíÀÌ ÇÒ °ÍÀÌ´Ù. samba¸¦ ÀÌ¿ëÇÏ¿© ¹é¾÷À» ÁøÇàÇÑ´Ù¸é, localhost¸¦ gmfs1À¸·Î ¹Ù²Ù°í /etc/amandapass ÆÄÀÏ¿¡ °øÀ¯À̸§°ú ÇØ´ç °øÀ¯¸¦ ¾×¼¼½º ÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ ±×¸®°í ¾ÏÈ£¸¦ Àû¾îÁÖ¾î¾ß ÇÑ´Ù. ±× Æ÷¸ËÀº Amanda man page¸¦ Âü°íÇϱ⠹ٶõ´Ù.
¹é¾÷À» ÁøÇàÇÒ »ç¿ëÀÚ´Â styooÀÌ¸ç °ü·ÃµÈ ÆÄÀÏ¿¡ ´ëÇÑ ¾²±â ±ÇÇÑÀÌ ÀÖ¾î¾ß ÇÔÀº µÎ ¸»ÇÒ ³ªÀ§µµ ¾ø´Ù. /etc/amandaµð·ºÅ丮 ¹× ±× ÇÏÀ§ µð·ºÅ丮¿Í ÆÄÀÏ¿¡ ´ëÇÑ Àб⾲±â ±ÇÇÑÀÌ styoo¿¡°Ô ÀÖ¾î¾ß ÇÒ °ÍÀÌ´Ù. »Ó¸¸ ¾Æ´Ï¶ó, /var/lib/amanda µð·ºÅ丮 ¹× ±× ÇÏÀ§ÀÇ ÆÄÀÏµé ±×¸®°í /var/log/amanda µð·ºÅ丮 ¹× ±× ÇÏÀ§ÀÇ ÆÄÀϵ鿡 ´ëÇÑ Àб⾲±â ±ÇÇÑÀÌ ÇÊ¿äÇÏ´Ù. ¶ÇÇÑ, /dev/nst0, /dev/sg0¿¡ ´ëÇÑ Àб⾲±â ±ÇÇѵµ ´ç¿¬È÷ ÀÖ¾î¾ß ÇÒ °ÍÀÌ´Ù.
ÀÌÁ¦, ¹é¾÷À» ÁøÇàÇØ º¸ÀÚ. Amanda¸¦ ¼³Ä¡Çϰí À§¿Í °°ÀÌ ¼³Á¤À» ³¡¸¶Ä£ ÈÄ Amanda ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© ¹é¾÷À» ÁøÇàÇÒ ¶§ ÈçÈ÷ ¹ß»ýÇÒ ¼ö ÀÖ´Â ¿¡·¯ »óȲµµ ÇÔ²² Ãë±ÞÇÒ °ÍÀÌ´Ù.
Å×ÀÙ ÀåÄ¡¿¡ ºó Å×ÀÙÀ» Çϳª ³Ö°í amlabel ¸í·ÉÀ¸·Î Å×ÀÙ¿¡ ¶óº§À» ºÙÀÌÀÚ. -f ¿É¼ÇÀ» ºÙ¿©¼ °Á¦·Î ¶óº§À» ½á ³Öµµ·Ï ÇÏÀÚ.
$ amlabel -f SpaceWar SpaceWar-001
rewinding, reading label, not an amanda tape
rewinding, writing label SpaceWar-001, checking label
amlabel: couldn't write tapelist: No such file or directory
|
Å×ÀÙ¿¡ ¶óº§À» ½á ³ÖÀº ÈÄ, amadmin ¸í·ÉÀ¸·Î »ç¿ëÇÒ Å×ÀÙ ¸ñ·ÏÀ» »ìÆìº¸ÀÚ.
$ amadmin SpaceWar tape
The next Amanda run should go onto a new tape.
The next Amanda run should go onto a new tape.
|
0 SpaceWar-004 reuse
0 SpaceWar-003 reuse
0 SpaceWar-002 reuse
0 SpaceWar-001 reuse
|
$ amadmin SpaceWar tape
The next Amanda run should go onto tape SpaceWar-001 or a new tape.
The next Amanda run should go onto tape SpaceWar-002 or a new tape.
|
amcheck ¸í·ÉÀ¸·Î ¼³Á¤¿¡ ÀÌ»óÀÌ ¾ø´ÂÁö È®ÀÎÇØ º¸ÀÚ. µ¥ºñ¾ÈÀÇ °æ¿ì, amanda ¸í·É¾îµéÀÌ /usr/sbin µð·ºÅ丮¿¡ Àִµ¥ amcheck ¸í·ÉÀÇ ½ÇÇà ±ÇÇÑÀÌ root¿Í backup¿¡°Ô¸¸ ÀÖÀ» ¼öµµ ÀÖÀ¸´Ï ½ÇÇà ±ÇÇÑÀ» Ãß°¡ÇØ ÁÖ¾î¾ß ÇÒ °ÍÀÌ´Ù.
$ amcheck SpaceWar
ERROR: program /usr/lib/amanda/planner: not executable
Holding disk /backup-image/Image: 6636356 KB disk space available, using 6626116 KB
ERROR: log dir /var/log/amanda/SpaceWar: not writable
NOTE: skipping tape-writable test
Tape SpaceWar-001 label ok
NOTE: info dir /var/lib/amanda/SpaceWar/curinfo: does not exist
NOTE: it will be created on the next run
NOTE: index dir /var/lib/amanda/SpaceWar/index: does not exist
Server check took 0.010 seconds
Amanda Backup Client Hosts Check
--------------------------------
ERROR: gmfs2: [access as styoo not allowed from styoo@backupsvr] amandahostsauth failed
WARNING: localhost: selfcheck request timed out. Host down?
Client check: 2 hosts checked in 30.018 seconds, 2 problems found
|
"ERROR: program /usr/lib/amanda/planner: not executable" ¿©±â¼ planner¶ó´Â °ÍÀº amdump ¸í·É¾î°¡ ½ÇÇàµÈ ÈÄ amdumpÀÇ ºÎ¸§À» ¹Þ°í ½ÇÇàµÇ´Â ¸í·É¾îÀÌ´Ù. ÀÌ ¿Ü¿¡µµ ¸î °¡Áö ´Ù¸¥ ¸í·É¾î°¡ Àִµ¥ µ¥ºñ¾ÈÀÇ °æ¿ì, ÀÌµé ¸í·É¾î´Â /usr/lib/amanda µð·ºÅ丮¿¡ Á¸ÀçÇÑ´Ù. ½ÇÇà ±ÇÇÑÀÌ root ¶Ç´Â backup¿¡°Ô¸¸ ÀÖÀ» ¼ö ÀÖÀ¸´Ï ´Ù¸¥ »ç¿ëÀÚ¿¡°Ô ½ÇÇà ±ÇÇÑÀÌ ¾ø´Â ¸í·É¾î¸¦ ã¾Æ¼ ½ÇÇà ±ÇÇÑÀ» ºÎ¿©ÇØ¾ß ÇÒ °ÍÀÌ´Ù.
"ERROR: log dir /var/log/amanda/SpaceWar: not writable" À̰ÍÀº SpaceWar µð·ºÅ丮°¡ ¾ø±â ¶§¹®ÀÌ´Ï µð·ºÅ丮¸¦ ¸¸µé¾î ÁØ´Ù. ±× ¹Ø¿¡ Ç¥½ÃµÈ curinfo¿Í index°¡ ¾ø´Ù´Â ¸Þ¼¼Áöµµ ¸¶Âù°¡Áö·Î /var/lib/amanda µð·ºÅ丮 ¹Ø¿¡ SpaceWar¸¦ ¸¸µé¾î ÁØ´Ù.
"ERROR: gmfs2: [access as styoo not allowed from styoo@backupsvr] amandahostsauth failed" ÀÌ ¸Þ¼¼Áö´Â backupsvrÀÇ »ç¿ëÀÚ styoo¿¡°Ô ÆÄÀϼ¹ö gmfs2(¸®´ª½º ¸Ó½®ÀÓ)ÀÇ amandad¿¡ Á¢±ÙÇÒ ±ÇÇÑÀÌ ¾ø±â ¶§¹®¿¡ ¹ß»ýÇÑ´Ù. gmfs2ÀÇ /etc/amandahosts ÆÄÀÏ¿¡
backupsvr styoo |
"WARNING: localhost: selfcheck request timed out. Host down?" ÀÌ ¸Þ¼¼Áö´Â amandad(Amanda µ¥¸ó)°¡ ´Ù¸¥ »ç¿ëÀÚÀÇ ±ÇÇÑÀ¸·Î ½ÇÇàµÇ¾ú±â ¶§¹®ÀÌ´Ù. /etc/inetd.confÀ» ¿¾îº¸¸é ¾Æ·¡¿Í °°Àº ³»¿ëÀÌ ÀÖÀ» °ÍÀÌ´Ù.
amanda dgram udp wait backup /usr/sbin/tcpd /usr/lib/amanda/amandad
amandaidx stream tcp nowait backup /usr/sbin/tcpd /usr/lib/amanda/amindexd
amidxtape stream tcp nowait backup /usr/sbin/tcpd /usr/lib/amanda/amidxtaped
|
À§ ¹®Á¦°¡ ÇØ°áµÇ¸é ´ÙÀ½°ú °°Àº ¿¡·¯°¡ ¹ß»ýÇÒ ¼öµµ ÀÖ´Ù. "ERROR: localhost: [access as styoo not allowed from styoo@localhost] open of /home/styoo/.amandahosts failed" À̰ÍÀº ¸» ±×´ë·Î /home/styoo/.amandahostsÀ» ¿ ¼ö ¾ø´Ù´Â ¶æÀÌ´Ù. /etc/amandahosts ÆÄÀÏÀ» /home/styoo/.amandahosts¿¡ ¸µÅ©¸¦ ½ÃÄÑÁÖ¸é µÈ´Ù.
À§ ¹®Á¦°¡ ÇØ°áµÇ¸é ´ÙÀ½°ú °°Àº ¿¡·¯°¡ ¹ß»ýÇÒ ¼öµµ ÀÖ´Ù. "ERROR: localhost: [access as styoo not allowed from styoo@localhost] amandahostsauth failed" À̰ÍÀº gmfs2¿¡ Á¢±ÙÇÒ ¼ö ¾ø´Ù´Â ¿¡·¯¿Í À¯»çÇÑ °ÍÀ¸·Î Å×ÀÙ¼¹ö(backupsvr)ÀÇ /etc/amandahosts ÆÄÀÏ¿¡
localhost styoo
|
autoloader¿Í °°Àº ¹Ìµð¾î üÀÎÀú°¡ ¾ø´Â °æ¿ì, ´ÙÀ½°ú °°Àº °æ°í ¸Þ¼¼Áö°¡ ³ªÅ¸³¯ ¼öµµ ÀÖ´Ù. "WARNING: if a tape changer is not available, runtapes must be set to 1" À̰ÍÀº autoloader¿Í °°Àº ¹Ìµð¾î üÀÎÀú°¡ ¾ø±â ¶§¹®¿¡ runtape ÆÄ¶ó¸ÞŸ °ªÀÌ 1·Î ¼¼ÆÃµÇ¾î¾ß ÇÑ´Ù´Â ¶æÀÌ´Ù. ÇöÀç´Â 2·Î ¼³Á¤µÇ¾î ÀÖ´Ù. ÀÌ °æ°í´Â ¹«½ÃÇØµµ ÁÁ´Ù.
amcheck ¸í·ÉÀ¸·Î ÀÌ»óÀÌ ¾ø´Â °ÍÀ» È®ÀÎÇÏ¿´À¸¸é, ÀÌÁ¦ ¹é±×¶ó¿îµå·Î amdump ¸í·ÉÀ» ½ÇÇà½ÃÄÑ ¹é¾÷À» ÇØ º¸ÀÚ.
$ amdump SpaceWar &
|
$ amstatus SpaceWar
Using /var/log/amanda/SpaceWar/amdump from Åä 9¿ù 14 14:51:50 KST 2002
localhost:/SpaceWar1/Program-Sources getting estimate
localhost:/SpaceWar1/Graphic-Sources getting estimate
gmfs2:/SpaceWar2/Prototype getting estimate
gmfs2:/SpaceWar2/Schedule getting estimate
SUMMARY part real estimated
size size
partition : 4
estimated : 0 0k
failed : 0 0k ( 0.00%)
wait for dumping: 0 0k ( 0.00%)
dumping to tape : 0 0k ( 0.00%)
dumping : 0 0k 0k ( 0.00%) ( 0.00%)
dumped : 0 0k 0k ( 0.00%) ( 0.00%)
wait for writing: 0 0k 0k ( 0.00%) ( 0.00%)
writing to tape : 0 0k 0k ( 0.00%) ( 0.00%)
failed to tape : 0 0k 0k ( 0.00%) ( 0.00%)
taped : 0 0k 0k ( 0.00%) ( 0.00%)
all dumpers active
taper idle
|
$ amstatus SpaceWar
Using /var/log/amanda/SpaceWar/amdump from Åä 9¿ù 14 15:06:33 KST 2002
localhost:/SpaceWar1/Program-Sources 0 no estimate
localhost:/SpaceWar1/Graphic-Sources 0 no estimate
gmfs2:/SpaceWar2/Prototype 0 [dump larger than tape, but cannot incremental dump new disk]
gmfs2:/SpaceWar2/Schedule 0 14585k dumping 4832k ( 33.13%) (15:06:36)
SUMMARY part real estimated
size size
partition : 4
estimated : 2 14585k
failed : 3 0k ( 0.00%)
wait for dumping: 0 0k ( 0.00%)
dumping to tape : 0 0k ( 0.00%)
dumping : 1 4832k 14585k ( 33.13%) ( 6.42%)
dumped : 0 0k 0k ( 0.00%) ( 0.00%)
wait for writing: 0 0k 0k ( 0.00%) ( 0.00%)
writing to tape : 0 0k 0k ( 0.00%) ( 0.00%)
failed to tape : 0 0k 0k ( 0.00%) ( 0.00%)
taped : 0 0k 0k ( 0.00%) ( 0.00%)
3 dumpers idle : start-wait
taper idle
network free kps: 270
holding space : 6611460k ( 99.78%)
|
±×¸®°í À©µµ¿ì ¼¹ö gmfs1ÀÇ µð·ºÅ丮¸¦ SMB ¸¶¿îÆ®ÇÑ µð·ºÅ丮´Â "no estimate" ¶ó°í µÇ¾î ÀÖ´Ù. ÀÌ ¹®Á¦´Â ´ë°³´Â ÆÛ¹Ì¼Ç ¹®Á¦ÀÌ´Ù. Amanda ÆÐŰÁö¸¦ ºôµåÇÒ ¶§ styoo¶ó´Â »ç¿ëÀÚ·Î ¿É¼ÇÀ» ÁÖ¾ú´Âµ¥, ¸·»ó ½ÇÇàÇÒ ¶§´Â ¾û¶×ÇÑ »ç¿ëÀÚ·Î amdump¸¦ ½ÇÇàÇ߱⠶§¹®ÀÌ´Ù. Á¦°øµÇ´Â ÆÐŰÁö ±×´ë·Î ¼³Ä¡Çß´Ù¸é root ¶Ç´Â backup »ç¿ëÀÚÀÇ ±ÇÇÑÀ¸·Î ¹é¾÷À» ½ÇÇàÇØ¾ß ÇÒ °ÍÀÌ´Ù.
À¢¸¸ÇÑ ¿¡·¯ »óȲÀº üũ¸¦ ÇßÀ¸´Ï ¹é¾÷ÀÌ Àß ¿Ï·áµÇ¾ú´Ù°í ÇÏÀÚ. ±×¸®°í 1 °³ÀÇ Å×ÀÙÀ» ¹é¾÷¿¡ »ç¿ëÇß´Ù°í ÇÏÀÚ. ÀÌÁ¦ ´Ù½Ã ÇÑ ¹ø amadmin ¸í·ÉÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ´Â Å×ÀÙ ¸ñ·ÏÀ» »ìÆìº¸ÀÚ.
$ amadmin SpaceWar tape
The next Amanda run should go onto tape SpaceWar-002 or a new tape.
The next Amanda run should go onto tape SpaceWar-003 or a new tape.
|
amadmin SpaceWar no-reuse SpaceWar-001
|
¹é¾÷µÈ µ¥ÀÌŸ¸¦ Å×ÀÙ¿¡ ¾²´Â Áß¿¡ ¿¡·¯°¡ ¹ß»ýÇÑ´Ù¸é ´ÙÀ½ Å×ÀÙ¿¡ µ¥ÀÌŸ¸¦ ´Ù½Ã ½á ³ÖÀ¸·Á ÇÒ °ÍÀÌ´Ù. ±×·¯³ª »ç¿ëÇÒ ´ÙÀ½ Å×ÀÙÀÌ ¾ø´Ù¸é ¹é¾÷ µ¥ÀÌŸ´Â ·ÎÄõð½ºÅ©¿¡ ³²°ÔµÇ¸ç ¹é¾÷Àº Á¾·áµÈ´Ù. ÀÌ·± °æ¿ì¿¡´Â »õ·Î¿î Å×ÀÙÀ» ÁغñÇÏ¿© ¶óº§À» ºÙÀÎ ´ÙÀ½, amflush ¸í·ÉÀ¸·Î ·ÎÄõð½ºÅ©ÀÇ µ¥ÀÌŸ¸¦ Å×ÀÙ¿¡ ¿Å°Ü ³õÀ» ¼ö ÀÖ´Ù.
$ amflush SpaceWar
|
$ amcleanup SpaceWar
|
º¹¿øÀ» ÇØ º¸ÀÚ. º¹¿øÀº amrecover¿Í amrestore µÎ °¡Áö¸¦ ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù. ¿©±â¼´Â amrecover¸¦ »ç¿ëÇϱâ·Î ÇÑ´Ù. º¹¿øÀº rootÀÇ ±ÇÇÑÀ¸·Î ½ÇÇàµÇ¾î¾ß ÇÑ´Ù.
gmfs2ÀÇ /SpaceWar2/Schedule µð·ºÅ丮 ¹Ø¿¡ ÀÖ´ø 200206-Prog À̶õ µð·ºÅ丮¿Í 200206-Mail µð·ºÅ丮¸¦ ÇÏÀ§ µð·ºÅ丮¸¦ Æ÷ÇÔÇÏ¿© ¸ðµÎ º¹¿øÇÑ´Ù°í ÇÏÀÚ. /tmp¿¡ º¹±¸ÇÑ´Ù°í °¡Á¤ÇÏÀÚ.
# cd /tmp
# amrecover SpaceWar -d /dev/nst0
|
amrecover> |
220 backupsvr AMANDA index server (2.4.2p2) ready.
500 Access not allowed: [access as styoo not allowed from root@localhost] amandahostsauth failed
|
localhost root |
amrecover> sethost gmfs2
amrecover> setdisk /SpaceWar2/Schedule
|
amrecover> cd 200206-Prog
amrecover> add *
amrecover> cd ..
amrecover> cd 200206-Mail
amrecover> add *
|
amrecover> extract |
¿©±â±îÁö´Â Å×ÀÙ¼¹öÀÇ Å×ÀÙ ÀåÄ¡¸¦ ÀÌ¿ëÇÏ¿© º¹¿øÇÏ´Â ¹æ¹ýÀÌ´Ù. ±×·¯³ª ÀÌ·± °æ¿ì°¡ ÀÖÀ» ¼öµµ ÀÖ´Ù. ¹Ìµð¿À ȣȯÀÌ °¡´ÉÇÑ µÎ ´ëÀÇ Å×ÀÙ ÀåÄ¡¸¦ °¢°¢ ´Ù¸¥ ¸®´ª½º ¼¹ö¿¡ ÀåÂøÇÏ¿© ÇÑ ´ë´Â ¹é¾÷ Àü¿ëÀ¸·Î, ´Ù¸¥ ÇÑ ´ë´Â º¹¿ø Àü¿ëÀ¸·Î »ç¿ëÇϰíÀÚ ÇÏ´Â °æ¿ìµµ ÀÖÀ» °ÍÀÌ´Ù. ÀÌÁ¦ ¹é¾÷ Àü¿ë ¼¹ö¿¡¼ ¹é¾÷ÇÑ °ÍÀ» º¹¿ø Àü¿ë ¼¹ö¿¡¼ ¹é¾÷ÇÏ´Â °æ¿ì¸¦ »ìÆìº¸ÀÚ.
¹é¾÷ Àü¿ë ¼¹öÀÇ È£½ºÆ®³×ÀÓÀº backupsvr¶ó Çϰí, º¹¿ø Àü¿ë ¼¹öÀÇ È£½ºÆ® ³×ÀÓÀº restoresvrÀ̶ó ÇÏÀÚ. ±×¸®°í /SpaceWar2/Schedule À» /tmp¿¡ º¹¿øÇÑ´Ù°í °¡Á¤ÇÏÀÚ.
# cd /tmp
# amrecover SpaceWar -s backupsvr -d /dev/nst0
|
À̰ÍÀ¸·Î º¹¿ø¿¡ ´ëÇÑ °Íµµ ´ë·« ¾Ë¾Æ º¸¾Ò´Ù. ´õ ÀÚ¼¼ÇÑ °ÍÀº Amanda man page¸¦ Âü°íÇÏ¸é¼ ±×¸®°í ½ÇÁ¦·Î »ç¿ëÇÏ¸é¼ Çϳª¾¿ ÀÍÈ÷´Â °ÍÀÌ ÃÖ¼±ÀÇ ¹æ¹ýÀÎ µí ½Í´Ù.
dump¶ó´Â ¹é¾÷ ÇÁ·Î±×·¥Àº 0¿¡¼ 9±îÁöÀÇ ¹é¾÷ ·¹º§À» Áö¿øÇÑ´Ù. Amanda°¡ ³»ºÎÀûÀ¸·Î »ç¿ëÇÏ´Â ¹é¾÷ ÇÁ·Î±×·¥Àº dump ¶Ç´Â tarÀÌ´Ù. Amandaµµ 0¿¡¼ 9±îÁöÀÇ ¹é¾÷ ·¹º§À» Á¦°øÇÏ¸ç ¹é¾÷ ·¹º§Àº »ç¿ëÀÚÀÇ ¼³Á¤À» ±Ù°Å·Î Amanda°¡ ½º½º·Î °áÁ¤ÇÑ´Ù.
¹é¾÷ ·¹º§ 0Àº Àüü¹é¾÷À» ÀǹÌÇÏ¸ç ¹é¾÷ ·¹º§ 1Àº Àüü ¹é¾÷ ÀÌÈÄ º¯°æµÈ ³»¿ë¿¡ ´ëÇÑ ¹é¾÷À» ¶æÇÑ´Ù. ¹é¾÷ ·¹º§ 2´Â ¹é¾÷ ·¹º§ 1 ÀÌÈÄ º¯°æµÈ ³»¿ë¿¡ ´ëÇÑ ¹é¾÷ÀÌ´Ù. ³ª¸ÓÁö ¹é¾÷ ·¹º§µµ ºñ½ÁÇÏ°Ô »ý°¢ÇÏ¸é µÉ °ÍÀÌ´Ù.
ÇÊÀÚ´Â ÇÑ ´Þ¿¡ 1ȸ Àüü ¹é¾÷À» Çϰí ÁÖ°£ ´ÜÀ§·Î ·¹º§ 1ÀÇ ¹é¾÷À» ½Ç½ÃÇÑ´Ù. 9¿ù ù° ÀÏ¿äÀÏ¿¡ Àüü ¹é¾÷À» ½Ç½ÃÇß´Ù¸é µÑ° ÀÏ¿äÀÏ¿¡ ¹é¾÷ÇÒ ³»¿ëÀº Àüü ¹é¾÷ ÀÌÈÄ º¯°æ, Ãß°¡µÈ ÆÄÀϵéÀÏ °ÍÀÌ´Ù. ¼¼¹øÂ° ÀÏ¿äÀÏ¿¡ ¹é¾÷ÇÒ ³»¿ëµµ ·¹º§ 1ÀÇ ¹é¾÷À̹ǷΠÀüü ¹é¾÷ ÀÌÈÄ º¯°æ, Ãß°¡µÈ ÆÄÀϵéÀÏ °ÍÀÌ´Ù. µû¶ó¼ ¼¼¹øÂ° ÀÏ¿äÀÏ¿¡ ÁõºÐ ¹é¾÷À» ÇÏ°ÔµÇ¸é µÎ¹øÂ° ÀÏ¿äÀÏ¿¡ ÁõºÐ ¹é¾÷ÇÑ ³»¿ëÀº ÇÊ¿ä¾ø°Ô µÇ¸ç ±× ¶§ »ç¿ëÇÑ Å×ÀÙÀº ÀçȰ¿ëÀÌ °¡´ÉÇÏ°Ô µÈ´Ù.
°Á¦·Î ·¹º§ 1ÀÇ ¹é¾÷À» ½Ç½ÃÇϱâ À§Çؼ´Â 8.2Àý¿¡¼ Á¤ÀÇÇÑ dumptype Áß¿¡¼ incr-only¸¦ »ç¿ëÇÏ¸é µÈ´Ù.
localhost /SpaceWar1/Program-Sources incr-only
localhost /SpaceWar1/Graphic-Sources incr-only
gmfs2 /SpaceWar2/Prototype incr-only
gmfs2 /SpaceWar2/Schedule incr-only
|
ÀÌÁ¦ amcheck ¸í·ÉÀ¸·Î ÀÌ»ó À¯¹«¸¦ È®ÀÎÇÑ ÈÄ, amdump ¸í·ÉÀ¸·Î ¹é¾÷À» ½ÇÇà½ÃŰ¸é µÉ °ÍÀÌ´Ù.
Amanda´Â ¹é¾÷À» ÁøÇàÇÏ´Â Áß¿¡ ·ÎÄõð½ºÅ©(holdingdisk)ÀÇ °ø°£ÀÌ ºÎÁ·ÇÏ¸é °ø°£¿¡ ¿©À¯°¡ »ý±æ ¶§±îÁö ÀϺΠµð·ºÅ丮¿¡ ´ëÇÑ ¹é¾÷À» ÀϽà Áß´ÜÇϰí ÀÖ´Ù°¡, °ø°£¿¡ ¿©À¯°¡ »ý±â¸é ±×¶§ ´Ù½Ã ¹é¾÷À» ÁøÇàÇÑ´Ù. À̶§ ½Ã°£ÀÇ Áö¿¬À¸·Î ÀÎÇØ ¹é¾÷¿¡ °É¸®´Â ½Ã°£ÀÌ ´Ã¾î³ª°Ô µÈ´Ù. ÀÌ °æ¿ì´Â ÀϺΠµð·ºÅ丮¸¦ Å×ÀÙ¿¡ ¹Ù·Î ¾²´Â °ÍÀÌ À¯¸®ÇÒ ¼öµµ ÀÖ´Ù. writetotapeÀ̶ó´Â dumptypeÀ» Á¤ÀÇÇϰí Å×ÀÙ¿¡ ¹Ù·Î ¾²±â¸¦ ¿øÇÏ´Â µð·ºÅ丮ÀÇ dumptypeÀ» writetotapeÀ¸·Î ÁöÁ¤ÇÏ¸é µÉ °ÍÀÌ´Ù.
define dumptype wtritetotape {
global
comment "write directly to tape"
priority high
dumpcycle 0
holdingdisk no
}
|
localhost /SpaceWar1/Program-Sources writetotape
localhost /SpaceWar1/Graphic-Sources always-full
gmfs2 /SpaceWar2/Prototype always-full
gmfs2 /SpaceWar2/Schedule always-full
|
¹é¾÷ÇÒ Çʿ䰡 ¾ø´Â ÆÄÀÏÀÌ ÀÖÀ» ¼öµµ ÀÖ´Ù. ÀÌ ¶§´Â dumptype¿¡ exclude ¶Ç´Â exclude list¸¦ ÁöÁ¤ÇÏ¿© ÇØ°áÇÒ ¼ö ÀÖ´Ù. exclude list¿¡ ´ëÇØ ¾Ë¾Æº¸ÀÚ. dumptypeÀº ¾Æ·¡¿Í °°Àº ¸ð¾çÀÌ µÉ °ÍÀÌ´Ù.
define dumptype always-full {
global
comment "write directly to tape"
priority high
dumpcycle 0
exclude list "/etc/amanda/SpaceWar/exclude-files"
}
|
AUTOEXEC.BAT
NTDETECT.COM
arcsetup.exe
ntldr
WINNT
Documents and Settings
System Volume Information
arcldr.exe
bootfont.bin
RECYCLED
Recycled
*.SYS
*.sys
*.ini
|