Linux server backup using the Mondo Rescue

Facebooktwittermail

さて、それでは試しにLinuxサーバをMondo Rescueでバックアップしてみます

バックアップにはmondoarchiveコマンドを利用します
mondoarchive command
http://www.mondorescue.org/docs/mondoarchive.8.html

日本語訳のサイトがありました。感謝です
http://www1.s2.starcat.ne.jp/kanocl/shumi/mondomanual.htm


とりあえずサーバ全体をisoイメージにバックアップしてみます
オプションは
-O バックアップ
-p ファイル名にhost1を使う(1枚目:host1-1.iso 2枚目:host1-2.isoになる)
-i ISOファイルにする
-E バックアップから除外するディレクトリ/ファイル
-d ISOファイルを保存するディレクトリ
-s 分割サイズ(4Gで分割)
-G 圧縮エンジンをbzip2の代わりにgzipを使う

[root@host1 ~]# cd /tmp
[root@host1 tmp]# mondoarchive -O -p host1 -i -E /tmp -d /tmp -s 4g -G
Initializing…
See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Done.
BusyBox’s sources are available from http://www.busybox.net
Making catalog of files to be backed up
(snip)
—evalcall—1— Making catalog of /
—evalcall—2— TASK: [********************] 97% done; 0:00 to go
—evalcall—E—
Done.
Dividing filelist into sets
Dividing filelist into sets. Please wait.
(snip)
—evalcall—1— Dividing filelist into sets
—evalcall—2— TASK: [********************] 99% done; 0:00 to go
—evalcall—E—
Your backup will occupy approximately three media.
Done.
Copying Mondo’s core files to the scratch directory
Done.
Calling MINDI to create boot+data disks
Your boot loader is GRUB and it boots from /dev/sda
Boot loader version string: grub (GNU GRUB 0.97)
—evalcall—1— Calling MINDI to create boot+data disk
—evalcall—2— TASK: [*……………….] 3% done; 0:00 to go
—evalcall—E—
—evalcall—1— Calling MINDI to create boot+data disk
—evalcall—2— TASK: [********************] 99% done; 0:00 to go
—evalcall—E—
Boot+data disks were created OK
Done.
Preparing to archive your data
Done.
Archiving regular files to media
Archiving regular files
—progress-form—1— I am backing up your live filesystem now.
—progress-form—2— Please wait. This may take a couple of hours.
—progress-form—3— Working…
(snip)
—progress-form—4— TASK: [********************] 99% done; 0:01 to go
—progress-form—1— I am backing up your live filesystem now.
—progress-form—2— ISO 2: [***************…..] 71% used
—progress-form—3— Please wait. This may take a couple of hours.
—progress-form—E—
—progress-form—4— TASK: [********************] 100% done; 0:00 to go
Your regular files have been archived successfully.
Done.
Archiving large files to media
I am now backing up all large files.
—progress-form—1— I am now backing up all large files.
—progress-form—2— Please wait. This may take some time.
—progress-form—3—
—progress-form—E—
—progress-form—4— TASK: [*……………….] 1% done; 0:00 to go
(snip)
—progress-form—4— TASK: [***************…..] 75% done; 0:19 to go
—progress-form—1— I am now backing up all large files.
—progress-form—2— ISO 2: [********************] 99% used
—progress-form—3— Please wait. This may take some time.
—progress-form—E—
—progress-form—4— TASK: [****************….] 76% done; 0:18 to go
Please be patient. Do not be alarmed by on-screen inactivity.
—evalcall—1— Running mkisofs to make ISO #2
—evalcall—2— TASK: [*……………….] 5% done; 0:19 to go
—evalcall—E—
(snip)
—evalcall—1— Running mkisofs to make ISO #2
—evalcall—2— TASK: [********************] 96% done; 0:06 to go
—evalcall—E—
Call to mkisofs to make ISO (ISO #2) …OK
—progress-form—1— I am now backing up all large files.
—progress-form—2— ISO 3: [*……………….] 1% used
—progress-form—3— Please wait. This may take some time.
—progress-form—E—
(snip)
—progress-form—4— TASK: [********************] 100% done; 0:00 to go
—progress-form—1— I am now backing up all large files.
—progress-form—2— ISO 3: [***……………..] 11% used
—progress-form—3— Please wait. This may take some time.
—progress-form—E—
—progress-form—4— TASK: [********************] 100% done; 0:00 to go
Done.
Writing any remaining data to media
Please be patient. Do not be alarmed by on-screen inactivity.
—evalcall—1— Running mkisofs to make ISO #3
—evalcall—2— TASK: [***************…..] 72% done; 0:00 to go
—evalcall—E—
Call to mkisofs to make ISO (ISO #3) …OK
Done.
Done.
Backup and/or verify ran to completion. Everything appears to be fine.
/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it
Data archived OK.
Mondoarchive ran OK.
See /var/log/mondoarchive.log for details of backup run.
Execution run ended; result=0
Type ‘less /var/log/mondoarchive.log’ to see the output log

とりあえず終了しました。確認してみると

このISOイメージをDVD-Rに書き込んでDVDドライブからサーバをブートすれば起動する(はず)でしょう

Leave a Reply