備份整個Linux OS System及還原
dump 備份的資料可以用 restore 再還原回來。
[root@c5mes1 meslog]# dump -0uaf /meslog/c5mes1.dump /
DUMP: Date of this level 0 dump: Wed Apr 3 16:36:03 2013
DUMP: Dumping /dev/mapper/VolGroup00-LogVol00 (/) to /meslog/c5mes1.dump
DUMP: Label: none
DUMP: Writing 10 Kilobyte records
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 9409547 blocks.
DUMP: Volume 1 started with block 1 at: Wed Apr 3 16:36:50 2013
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 80.80% done at 25343 kB/s, finished in 0:01
DUMP: Closing /meslog/c5mes1.dump
DUMP: Volume 1 completed at: Wed Apr 3 16:43:20 2013
DUMP: Volume 1 9966500 blocks (9732.91MB)
DUMP: Volume 1 took 0:06:30
DUMP: Volume 1 transfer rate: 25555 kB/s
DUMP: 9966500 blocks (9732.91MB) on 1 volume(s)
DUMP: finished in 390 seconds, throughput 25555 kBytes/sec
DUMP: Date of this level 0 dump: Wed Apr 3 16:36:03 2013
DUMP: Date this dump completed: Wed Apr 3 16:43:20 2013
DUMP: Average transfer rate: 25555 kB/s
DUMP: DUMP IS DONE
· -0 以 level 0 備份,也就是完整備份,level 可以為 0~9,level 1 則只備份 level 0 後有異動的部份。
· -u update,備份完成後自動更新 /etc/dumpdates 的內容(記錄分割區代號、level、備份日期)。
· -a auto-size,略過可儲存空間大小的檢查。
· -f file,將備份的資料輸出到後面參數指定的檔案,也可以是一個硬體(device file)或是標準輸出 (-)。
2-2 以 RESTORE 還原檔案
還原檔案:
[root@c5mes1 meslog]# restore -rf c5mes1.dump
備註:
1.若要還原,需到根目錄底下還原,因為他會直接還原在此目錄底下
2.還原完之後,系統會整個當機,應該是在背景執行,不過不要太早重開機,要確定他都還原完之後才重開
Reference:
備份還原說明:http://nolonger897.blogspot.tw/2012_02_01_archive.html
鳥哥dump說明:http://linux.vbird.org/linux_basic/0240tarcompress.php#dump_restore
備份到遠端機器:http://www.monster.com.tw/archives/98
0 意見:
張貼留言