7. 7
amandahostsの設定
• /var/lib/amanda/.amandahostsを編集
‒ FQDN名とバックアップユーザ名を指定
• サーバー側(バックアップ対象ホストを記述)
• 各クライアント側(サーバーのホストを記述)
orange.office.begi.net amanda
# バックアップ用
orange.office.begi.net root
# リストア用
sebone3.office.begi.net amanda
sebone3.office.begi.net root
ginjiro.office.begi.net amanda
ginjiro.office.begi.net root
orange.office.begi.net amanda
37
バックアップの設定準備
• /etc/amanda内は1ディレクトリで1つのバッ
クアッププロジェクトという扱い
• DailySet1がサンプルプロジェクト
‒ このディレクトリをコピーして使うと良い
‒ ※今回はこのまま利用
• DailySet1ディレクトリに移動して、tapelist
ファイルを作成
‒ $ cd /etc/amanda/DailySet1
‒ $ touch tapelist; chmod 660 tapelist
38
amanda.confの設定(1/8)
• バックアップに関する基本的な設定を行う
‒ バックアップのサイクル
‒ テープドライブのパス
‒ テープドライブの種類
‒ 保持ディスク
‒ バックアップ対象ディレクトリの設定
• サンプルは設定項目が多いが、
大体はデフォルト設定のままで良い
39
amanda.confの設定(2/8)
• org DailySet1
‒ 設定名。ディレクトリ名と同じ名前にする。
• mailto ginjiro@begi.net
‒ 通知メールの送信先を指定する。
• dumpuser amanda
‒ バックアップユーザーを指定。変更しない
• netusage 100000Kbps
‒ バックアップ時の転送速度の指定。誰もいない夜間に
バックアップするので、帯域は適当に大きくとった。
org DailySet1
# your organization name for reports
mailto "ginjiro@begi.net
# space separated list of operators ..
dumpuser "amanda"
# the user to run dumps under
netusage 100000 Kbps
# maximum net bandwidth for Amanda, ...
40
amanda.confの設定(3/8)
• 月 金にフルバックアップする
• dumpcycle 0 weeks
‒ 1サイクルの期間の指定
• runspercycle 0 days
‒ 1サイクルあたりにバックアップを実行する回数の指定
• tapecycle 5tapes
‒ 1サイクルあたりに使用するテープの本数
dumpcycle 0 weeks
# the number of days in the normal ...
runspercycle 0 days # the number of amdump runs in dumpcycle..
tapecycle 5 tapes
# the number of tapes in rotation...
41
バックアップサイクル
• 差分バックアップも可能
‒ フル・差分の間隔はAmandaにお任せになる
‒ バックアップ量に応じて判断してくれる
• 1週間を1サイクルとして、1サイクル中5日
バックアップを取る
• バックアップメディアは
dumpcycle*runspercycle+1本必要
dumpcycle 1 weeks
# the number of days in the normal ...
runspercycle 5 days # the number of amdump runs in dumpcycle..
tapecycle 6 tapes
# the number of tapes in rotation...
42