日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Linux下的各種備份方法匯總

一. 在單個(gè)服務(wù)器上的備份
最常見的備份方法是在命令行上用經(jīng)典的備份程序tar .是最通用最簡(jiǎn)單也最有用的備份工具
# tar cvfbackup.tar /etc?。▊浞菡麄€(gè)etc 目錄及下面的所有子目錄和文件)
#gzip -9 backup.tar(得到最大的壓縮率)

你可以把備份后的backup.tar.gz轉(zhuǎn)存到其它介質(zhì),CDR/CDRW光盤,私人信箱等

二. 跨服務(wù)器的備份
1. 利用ssh/scp功能直接把文件或目錄從一臺(tái)服務(wù)器拷貝到另一臺(tái)服務(wù)器上 。
參見文章薈萃中另一篇文章《如何不用密碼進(jìn)行ssh/scp》
2. 利用smbmount先mount另一臺(tái)服務(wù)器上的Samba共享目錄到這臺(tái)機(jī)器的某目錄下,直接進(jìn)行cp操作 。
 如:[root@sh/mnt]# smbmount //sh3/pub /mnt/sh3 -N
將服務(wù)器sh3上的Samba共享目錄pub mount到服務(wù)器sh上的/mnt/sh3目錄下面 。且不提示密碼
3.利用NFS功能進(jìn)行服務(wù)器間的備份,有一定程序的安全性問題,在此不多做介紹 。

三. 備份到其它介質(zhì)
你可以備份到磁帶,ZIP drive , JAZ drive
1. 備份到磁帶
假設(shè)你已經(jīng)設(shè)置并安裝好了磁帶機(jī),本人用的是HP SuitStore 500,外置,SCSI接口 。
1. 查看磁帶中的目錄tar tvf /dev/st0
2. 查看磁帶內(nèi)容并輸出到一個(gè)文件中 tar tvf /dev/st0 > stlist
3.備份檔案tar cvf /dev/st0 /etc
 tar cvf /dev/st0 /etc/hosts /boot /etc/smb.conf
4. 按指定的文件內(nèi)容或目錄釋放出磁帶中的相應(yīng)文件
tar -T stlist -xvf /dev/st0
 tar xvfz /dev/st0 /etc/
6. 附加個(gè)別文件到磁帶后面
 tar -r /etc/hosts /etc/passwd -vf /dev/st0
7. 從現(xiàn)有磁帶中刪除一個(gè)或幾個(gè)文件
 tar --delete etc/hosts -vf /dev/st0
8. 附加一個(gè)現(xiàn)有的tar文檔到磁帶后面
 tar -A pamd.tar -vf /dev/st0
2. 備份到JAZ 驅(qū)動(dòng)器
7.3 Getting a Zip drive to work
(參見Redhat FAQ: http://www.redhat.com/support/docs/faqs/rhl_general_faq/FAQ.html?。?
There are excellent references in the ZIP HOWTOs at http://www.redhat.com/mirrors/LDP.

Also, there is a Zip HOWTO at:

http://www.linuxdoc.org/HOWTO/HOWTO-INDEX-3.html

In Red Hat Linux 6.1, there are a few extra steps needed to get a parallel port Zip drive to work:

Edit your /etc/conf.modules and add:

alias parport_lowlevel parport_pc
alias scsi_hostadapter ppa

Then log in as root and run:
modprobe ppa

Some people have had problems if they daisy chain a Zip drive off of a chain with a
printer on it. Currently, we recommend that you use either the printer or the Zip drive.

For more information, check www.torque.net/paraport

If you are having problems with an IDE Zip drive, here is further information:

First check and make sure there is a disk in the drive. Also, make sure you are mounting
 it as partition 4 instead of 1. An example would be hdc4. The reason for this is that
the Macintosh uses partition 4 for its data partition and has problems if data is on
another partition.

3備份到 JAZ 驅(qū)動(dòng)器
假定JAQ驅(qū)動(dòng)器為SCSI接口,把JAZ驅(qū)動(dòng)器當(dāng)作SCSI鏈上的一個(gè)存儲(chǔ)設(shè)備即可 。
四. 跨操作系統(tǒng)進(jìn)行備份
1. 把Linux服務(wù)器上的數(shù)據(jù)資料備份到windows 95/98機(jī)器上
 假定一臺(tái)windows機(jī)器jephe有一完全讀寫共享目錄 data ,且密碼為 secret ,現(xiàn)希望把Linux上的
文件備份到這個(gè)共享目錄下,則先把這個(gè)共享可寫目錄mount到Linux下,再做普通的cp操作

附:在Linux上對(duì)Novell服務(wù)器上的數(shù)據(jù)進(jìn)行備份:(http://www.pcquest.com/linux/netware.asp)

推薦閱讀