JavaScript must be enabled in order for you to see "WP Copy Data Protect" effect. However, it seems JavaScript is either disabled or not supported by your browser. To see full result of "WP Copy Data Protector", enable JavaScript by changing your browser options, then try again.

Tape搭配mt與tar指令的介紹


最近剛好Configuration有指定要用Tape在RHEL6下做HW相容性的測試,之前也比較沒有使用Tape的經驗,只是聽別人口頭上說說而已,因此在這邊紀錄一下常用的Command,如下所示:
1) Review the status about the Tape
#mt -f /dev/st0 status

2) Rewind the Tape Drive
#mt -f /dev/st0 rewind

3) Backup the directory /var/www/html and /home with tar command
#tar czvf /dev/st0 /var/www/html /home

4) Find out what block you are with mt command
#mt -f /dev/st0 tell

5) Display list about files on tape drive
#tar ztvf /dev/st0

6) Restore /var/www/html directory
#cd /var/www/
#mt -f /dev/st0 rewind
#tar zxvf /dev/st0 html

7) Unload the Tape
#mt -f /dev/st0 offline

8) Erase the date with tape drive(Maybe waste a lot of time because of the size about tape)
#mt -f /dev/st0 erase
#dd if=/dev/zero of=/dev/st0 bs=512 count=1 -> More Faster

◎、以上就是一般操作磁帶機比較常用的一些Command,至於進階的用法可以參考這篇文章或是直接#man mt來查詢,另外透過Erase來清除資料可能會消耗你不少的時間,我從這邊找到可以透過DD來取代原本的Function之外,還可以省下不少時間的Command,先到這,收工!

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
This site is protected by WP-CopyRightPro