24
Copyright © 2014 BIGLOBE. All Rights Reserved 1 1.0 � ����������� ���������� BIGLOBE �������������������� �������� �������

バックアップ構築 設定マニュアル - BIGLOBE...$ tar xvf backup-cl._var.20140613094001.0.0.0000001 ^^^^^ $ バックアップ済の一覧が表示されます リストアしたい時点で差分データが複数ある場

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    1

    1.0 版

    (2014年7月7日)

    ビッグローブ株式会社

    BIGLOBEクラウドホスティング(西日本リージョン)

    バックアップ構築

    設定マニュアル

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    2

    0. はじめに .......................................................................................................................... 3 1. 全体構成 .......................................................................................................................... 4

    1.1. 全体構成の説明 ........................................................................................................ 4 2. amanda(サーバ)の設定 .............................................................................................. 5

    2.1. amandaの起動・停止方法 ...................................................................................... 5 2.2. 「バックアップ」対象の設定 .................................................................................. 5 2.3. 「バックアップ」実行 ............................................................................................. 6 2.4. 「バックアップ」履歴の確認 .................................................................................. 7 2.5. 「バックアップ」定期実行の設定(cronの設定) ................................................ 7 2.6. 「リストア」amandaサーバ側で実施の場合 ........................................................ 8 2.7. 「リストア」amandaクライアント側で実行する場合 .......................................... 9 2.7.1. リストア準備 ........................................................................................................ 9 2.7.2. リストア実行 ...................................................................................................... 10

    3. amanda(クライアント)の設定 ................................................................................. 12 3.1. amandaクライアントのインストール ................................................................. 12 3.2. amandaの起動・停止方法 .................................................................................... 12 3.3. amanda(クライアント)の設定 .......................................................................... 13

    4. rsyncの設定(同期先) ............................................................................................... 16 4.1. rsyncの起動・停止方法 ........................................................................................ 16 4.2. rsync(デーモンモード)の設定........................................................................... 17 4.3. 同期元ホストの登録設定 ....................................................................................... 18

    5. rsyncの設定(同期元サーバ)..................................................................................... 20 5.1. rsyncのインストール ............................................................................................ 20 5.2. rsyncの起動スクリプト ........................................................................................ 20 5.3. 定期実行の設定(cronの設定) ........................................................................... 21

    6. ベースモデル(西日本)(CentOS 6) モジュール構成 ............................................ 22 7. 注意事項 ........................................................................................................................ 23 ご注意 ........................................................................................................................ 23

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    3

    0. はじめに

    本マニュアルは、あらかじめ初期インストールされている OSや各種 OSSの環境に対する設定方法

    や推奨設定への変更方法が記載されています。

    初期パスワードは、ご利用の環境に対するセキュリティ強化のためにも、設定を変更されることを強く

    お奨めします。

    本マニュアル記載の設定手順例は簡易構築に向けた基本的なものに絞っており、バックアップやフ

    ァイル同期の暗号化通信、バックアップファイル暗号化の例は記載しておりません。(OSSの設定に

    より暗号化対応することもできます。)

    ●ご注意

    本マニュアルで記載の設定は管理者権限(root)での設定が中心になります。

    前提知識として管理者コマンドに関する知識が必要です。弊社ではお客様の設定誤りによるサポー

    トは致しかねますので、ご注意ください。

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    4

    1. 全体構成

    1.1. 全体構成の説明

    本マニュアルでは下記構成におけるバックアップソフト、ファイル同期ソフトの設定例を記載してい

    ます。各設定箇所の項番は本マニュアルの項番をマッピングしています。

    ファイル同期元サーバ

    バックアップ元サーバ

    バックアップ元サーバ

    ファイル同期元サーバ

    BIGLOBEクラウドホスティング

    西日本リージョン

    バックアップソフト

    amanda(サーバ)

    ファイル同期ソフト

    rsync(同期先)

    バックアップソフト

    amanda(クライアント)

    ファイル同期ソフト

    rsync(同期元)

    バックアップ

    データ

    (履歴保存)

    同期ファイル

    (ディレクトリ)

    ファイルバックアップ

    定期的なファイル同期

    2.amanda(サーバ)の設定

    4.rsyncの設定(同期先)

    3.amanda(クライアント)の設定

    5.rsyncの設定(同期元)

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    5

    2. amanda(サーバ)の設定

    2.1. amandaの起動・停止方法

    amandaサーバはxinetdのデーモンの中で起動しています。

    amandaサーバの起動方法(デフォルトは自動起動になっています。)

    amandaサーバの停止方法(他のxinetdで起動されるサービスも停止されます。)

    2.2. 「バックアップ」対象の設定

    事前にバックアップを行う対象のサーバのホスト名、IPアドレスを準備してください。

    ① /etc/hostsへ追加

    (設定例)クライアントのIPアドレスがxxx.xxx.xxx.xxx、ホスト名がbackup-cl の場合

    ② /etc/amanda/DailySet1/disklist を作成

    (設定例)ホスト名backup-cl の/varをバックアップ対象ディレクトリに指定する場合

    # echo “backup-cl /var comp-user-tar” >> /etc/amanda/DailySet1/disklist

    # cat /etc/amanda/DailySet1/disklist

    ・・・中略・・・

    backup-cl /var comp-user-tar

    #

    # echo “xxx.xxx.xxx.xxx backup-cl” >> /etc/hosts

    # cat /etc/hosts

    ・・・中略・・・

    xxx.xxx.xxx.xxx backup-cl

    #

    # /etc/init.d/xinetd stop

    # /etc/init.d/xinetd start

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    6

    ③ /etc/amanda/DailySet1/amanda.conf を設定

    バックアップの世代設定や通知メールの宛先を設定します。

    エディタで、/etc/amanda/DailySet1/amanda.conf に設定します。

    (設定例)

    通知メールの送付先:root@localhost

    バックアップ方式:毎日完全バックアップ、25世代

    ※メール送信を行うにはメールサーバの設定が必要になります。

    2.3. 「バックアップ」実行

    「3.amanda(クライアント)の設定」の完了後、バックアップの実行確認することができます。

    (実行例)バックアップ対象との実行確認を行います

    ・・・中略・・・

    mailto “root@localhost”

    ・・・中略・・・

    dumpcycle 0 weeks # the number of days in the normal dump cycle

    runspercycle 0 # the number of amdump runs in dumpcycle days

    # (4 weeks * 5 amdump runs per week -- just weekdays)

    tapecycle 25 tapes # the number of tapes in rotation

    # 4 weeks (dumpcycle) times 5 tapes per week (just

    # the weekdays) plus a few to handle errors that

    # need amflush and so we do not overwrite the full

    # backups performed at the beginning of the previous

    # cycle

    ・・・中略・・・

    #vi /etc/amanda/DailySet1/amanda.conf

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    7

    (実行例)バックアップを実行してみます

    2.4. 「バックアップ」履歴の確認 「3.amanda(クライアント)の設定」の完了後、バックアップが実行された後に、バックアップファ

    イルの履歴を確認することができます。

    (実行例)クライアントのIPアドレスがxxx.xxx.xxx.xxx の場合

    2.5. 「バックアップ」定期実行の設定(cronの設定)

    バックアップを定期実行するために、cronの設定を行います。

    エディタで、/var/spool/cron/amandabackup に実行スケジュールを設定します。

    # sudo su - amandabackup

    $ /usr/sbin/amdump DailySet1

    $

    # sudo su - amandabackup

    $ /usr/sbin/amcheck DailySet1

    ・・・中略・・・

    Amanda Backup Client Hosts Check

    --------------------------------

    Client check: 1 host checked in 2.126 seconds. 0 problems found.

    $

    # sudo su - amandabackup

    $ /usr/sbin/amadmin DailySet1 find

    date host disk lv tape or file file part status

    2014-01-15 18:45:11 backup-cl /var 0 DailySet1-01 1 1/1 OK

    2014-01-16 18:45:11 backup-cl /var 1 DailySet1-02 1 1/1 OK

    2014-01-17 18:45:11 backup-cl /var 1 DailySet1-03 1 1/1 OK

    2014-01-18 18:45:11 backup-cl /var 1 DailySet1-04 1 1/1 OK

    #

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    8

    (設定例)毎日4:10にamcheck、毎日4:40にamdumpを実行する場合

    ※amcheck:amandaのバックアップチェックコマンド

    ※amdump:amandaのバックアップ実行コマンド

    2.6. 「リストア」amandaサーバ側で実施の場合

    amandaサーバでバックアップしたクライアントデータのリストアを行います。

    (リストア例)

    これでカレントのディレクトリにファイルがリストアされます。

    但し、サーバ側でのリストア方式ではファイルパーミッションはリストアされません。

    10 4 * * * /usr/sbin/amcheck -m DailySet1

    40 4 * * * /usr/sbin/amdump DailySet1

    # vi /var/spool/cron/amandabackup

    # sudo su - amandabackup

    $ /usr/sbin/amadmin DailySet1 find

    date host disk lv tape or file file part status

    ・・・中略・・・

    2014-01-15 18:45:11 backup-cl /var 1 DailySet1-01 1 1/1 OK

    $ amtape DailySet1 label DailySet1-01

    ~~~~~~~~~~~

    $ amrestore file:/var/lib/amanda/vtapes backup-cl /var

    ^^^^̂ ^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^^^^̂̂ ̂ ^̂̂^̂̂^̂̂^̂̂ ̂̂^^̂̂

    $ tar xvf backup-cl._var.20140613094001.0.0.0000001

    ^^^^̂ ^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^^^^̂̂ ^^̂ ^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂^̂̂̂

    $

    バックアップ済の一覧が表示されます

    リストアしたい時点で差分データが複数ある場

    合は、レベル(lv)0→1→2・・で順番に繰り返

    し差分リストアを実施します。同じレベルのもの

    は最新ものだけになります。

    バックアップデータのパス 対象ホスト名 リストアディレクトリ

    リストアしたファイル名

    リストアしたいバックアップデータのラベル

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    9

    2.7. 「リストア」amandaクライアント側で実行する場合 2.7.1. リストア準備

    amandaクライアントのインストールされているホストからリストアを実行する場合は、amandaサー

    バに以下の設定が必要です。

    ※amandaサーバ側への設定です。

    ① /etc/hosts.allow

    (設定例)クライアントのIPアドレスがxxx.xxx.xxx.xxx の場合

    ② /var/lib/amanda/.amandahosts

    (設定例)クライアントのホスト名がbackup-cl の場合

    ③ ipfiter

    amandaクライアントは、10080/tcpポートを使用します。初期状態では、The Internetのすべて

    の場所からの10080/tcpポートへの接続を許可していません。

    エディタで /etc/sysconfig/iptables を開き、10080/tcpの記述を変更してください。

    (設定例)

    # echo “backup-cl root amindexd amidxtaped” >> /var/lib/amanda/.amandahosts

    # cat /var/lib/amanda/.amandahosts

    ・・・中略・・・

    backup-cl root amindexd amidxtaped

    #

    # echo “amandad: xxx.xxx.xxx.xxx” >> /etc/hosts.allow

    # cat /etc/hosts.allow

    ・・・中略・・・

    amandad: xxx.xxx.xxx.xxx

    #

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    10

    設定変更が終了したらiptablesを再起動してください。

    2.7.2. リストア実行

    amandaクライアントのインストールされているホストでリストアを実行します。

    ※amandaクライアント側で実行します。

    # /etc/init.d/iptables restart

    # Firewall configuration written by system-config-securitylevel

    # Manual customization of this file is not recommended.

    *filter

    :INPUT ACCEPT [0:0]

    :FORWARD ACCEPT [0:0]

    :OUTPUT ACCEPT [0:0]

    :RH-Firewall-1-INPUT - [0:0]

    -A INPUT -j RH-Firewall-1-INPUT

    ・・・中略・・・

    -A RH-Firewall-1-INPUT -j ACCEPT -p tcp -m tcp -s xxx.xxx.xxx.xxx --dport 10080 --syn

    COMMIT

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    11

    # /usr/sbin/amrecover

    >listhost

    ※amandaサーバから登録されているホスト名一覧が表示されます

    >sethost ホスト名

    ※リストアしたいホスト名を指定

    >listdisk

    ※amandaサーバからバックアップされているディレクトリ一覧が表示されます

    >setdisk ディレクトリ名

    ※リストアしたいディレクトリを指定

    >add *

    ※リストアするディレクトリを組み込んでいく(*はすべて指定になります)

    >lcd リストア先のディレクトリ名

    ※リストア先のローカルのディレクトリを指定

    >extract

    ※リストア実施。(amandaサーバ側で、amtapeコマンドでtape名を指定する必要があります。)

    >exit

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    12

    3. amanda(クライアント)の設定

    amandaによるバックアップを利用するには、バックアップ対象のデータがあるホストに amandaクラ

    イアントのインストールが必要です。下記は amandaクライアント側の設定の一例です。さまざまな

    OSに対応しているので、環境にあったクライアントを選択して設定してください。

    本項ではクライアントがCentOS6の場合の設定例を記載しています。

    3.1. amandaクライアントのインストール

    OSに応じたamandaクライアントモジュールをダウンロードしてインストールします。

    (参考)

    http://www.zmanda.com/download-amanda.php

    amandaクライアントのインストール例(CentOS6の場合)

    3.2. amandaの起動・停止方法

    amandaクライアントはxinetdのデーモンの中で起動しています。

    amandaクライアントの起動方法

    amandaクライアントの停止方法

    # /etc/init.d/xinetd start

    #yum install –y wget

    # wget

    http://www.zmanda.com/downloads/community/Amanda/3.3.5/Redhat_Enterprise_6.0/amanda-back

    up_client-3.3.5-1.rhel6.x86_64.rpm

    # yum install –y xinetd

    # yum install –y perl-JSON

    # rpm –ivh amanda-backup_client-3.3.5-1.rhel6.x86_64.rpm

    #

    http://www.zmanda.com/download-amanda.phphttp://www.zmanda.com/downloads/community/Amanda/3.3.5/Redhat_Enterprise_6.0/amanda-back

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    13

    3.3. amanda(クライアント)の設定

    amandaクライアントに対してamandaサーバの情報を設定していきます。amandaサーバのホスト

    名、IPアドレスを準備してください。

    ① /etc/hostsへ追加

    (設定例)amandaサーバのIPアドレスが yyy.yyy.yyy.yyy、ホスト名がbackup-sv の場合。

    ② /etc/hosts.allow へ追加

    (設定例)amandaサーバのIPアドレスが yyy.yyy.yyy.yyy の場合。

    ③ Ipfiter へ追加

    amandaサーバは、10080/tcpポートを使用します。初期状態では、The Internetのすべての場

    所からの10080/tcpポートへの接続を許可していません。

    エディタで /etc/sysconfig/iptables を開き、10080/tcpの記述を変更してください。

    (設定例)

    # echo “amandad: yyy.yyy.yyy.yyy” >> /etc/hosts.allow

    # cat /etc/hosts.allow

    ・・・中略・・・

    amandad: yyy.yyy.yyy.yyy

    #

    # echo “yyy.yyy.yyy.yyy backup-sv” >> /etc/hosts

    # cat /etc/hosts

    ・・・中略・・・

    yyy.yyy.yyy.yyy backup-sv

    #

    # /etc/init.d/xinetd stop

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    14

    設定変更が終わったらiptablesを再起動してください。

    ④ /var/lib/amanda/.amandahosts へ追加

    (設定例)amandaサーバのホスト名がamanda-sv の場合。

    ⑤ /etc/amanda/amanda-client.conf を設定

    バックアップサーバの設定をします。

    エディタで、/etc/amanda/amanda-client.conf に設定します。

    (設定例)

    バックアップサーバのホスト名がamanda-svの場合

    # echo “amanda-sv amandabackup amdump” >> /var/lib/amanda/.amandahosts

    # cat /var/lib/amanda/.amandahosts

    ・・・中略・・・

    amanda-sv amandabackup amdump

    #

    # /etc/init.d/iptables restart

    # Firewall configuration written by system-config-securitylevel

    # Manual customization of this file is not recommended.

    *filter

    :INPUT ACCEPT [0:0]

    :FORWARD ACCEPT [0:0]

    :OUTPUT ACCEPT [0:0]

    :RH-Firewall-1-INPUT - [0:0]

    -A INPUT -j RH-Firewall-1-INPUT

    -A FORWARD -j RH-Firewall-1-INPUT

    -A RH-Firewall-1-INPUT -i lo -j ACCEPT

    ・・・中略・・・

    -A RH-Firewall-1-INPUT -j ACCEPT -p tcp -m tcp -s yyy.yyy.yyy.yyy --dport 10080 --syn

    COMMIT

    #vi /etc/amanda/amanda-client.conf

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    15

    以上でクライアント側の設定は完了です。amandaサーバ側からバックアップを実行してください。

    ※ 「2.3 「バックアップ」実行 」 を参照

    #

    # amanda.conf - sample Amanda client configuration file.

    #

    # This file normally goes in /etc/amanda/amanda-client.conf.

    #

    conf "DailySet1" # your config name

    index_server "backup-sv" # your amindexd server

    tape_server "backup-sv" # your amidxtaped server

    tapedev "file:/var/lib/amanda/vtapes" # your tape device

    # if not set, Use configure or ask server.

    # if set to empty string "", ask server

    # amrecover will use the changer if set to the value

    # of 'amrecover_changer' in the server amanda.conf.

    ・・・中略・・・

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    16

    4. rsyncの設定(同期先)

    4.1. rsyncの起動・停止方法

    rsyncはxinetdの上で動作していますのでrsyncの起動・再起動・停止は、xinetdを起動・再起動・

    停止することで実行します。

    rsyncの起動方法

    rsyncの停止方法

    # /etc/init.d/xinetd stop

    # /etc/init.d/xinetd start

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    17

    4.2. rsync(デーモンモード)の設定

    同期を行うためのrsyncの設定を行います。事前に同期元サーバのホスト名、IPアドレスを準備し

    てください。

    (※)バックアップのオーバーヘッドを抑えるためrsync(デーモンモード)でrsyncプロトコルを利用し

    た同期設定例を記載しています。通信経路の暗号化が必要な場合は sshプロトコル等を使った設

    定にする必要がありますので注意してください。

    ① /etc/rsyncd.confの設定

    (設定例)クライアントのIPアドレスがxxx.xxx.xxx.xxx、ホスト名がbackup-cl の場合。

    ② /etc/rsyncd.secrets

    # /etc/rsyncd.conf

    #

    # Global options

    #

    uid = root

    gid = wheel

    use chroot = no

    log file = /var/log/rsyncd.log

    pid file = /var/run/rsyncd.pid

    hosts allow = xxx.xxx.xxx.xxx

    hosts deny = *

    #

    # Module options

    #

    [TEST]

    comment = rsync backup server for CL

    path = /tmp/

    auth users = backup

    secrets file = /etc/rsyncd.secrets

    read only = no

    # vi /etc/rsyncd.conf

    Comment:コメント

    Path:同期したファイルを置くディレクトリ

    auth users:secrets fileに記載したユーザ名

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    18

    (設定例)ユーザをbackup、パスワードをpassword に設定する場合。

    4.3. 同期元ホストの登録設定

    事前に同期を行う対象のサーバ(同期元)のホスト名、IPアドレスを準備してください。

    ① /etc/hostsへ追加

    (設定例)クライアントのIPアドレスがxxx.xxx.xxx.xxx、ホスト名がbackup-cl の場合

    ② /etc/hosts.allow

    (設定例)クライアントのIPアドレスがxxx.xxx.xxx.xxx の場合

    ③ Ipfiter へ追加

    rsyncは、873/tcpポートを使用します。初期状態では、The Internetのすべての場所からの

    873/tcpポートへの接続を許可していません。

    エディタで /etc/sysconfig/iptables を開き、873/tcpの記述を変更してください。

    (設定例)

    # echo “backup:password” >> /etc/rsyncd.secrets

    # cat /etc/rsyncd.secrets

    backup:password

    # chmod 600 /etc/rsyncd.secrets

    #

    # echo “rsync: xxx.xxx.xxx.xxx” >> /etc/hosts.allow

    # cat /etc/hosts.allow

    ・・・中略・・・

    rsync: xxx.xxx.xxx.xxx

    #

    # echo “xxx.xxx.xxx.xxx backup-cl” >> /etc/hosts

    # cat /etc/hosts

    ・・・中略・・・

    xxx.xxx.xxx.xxx backup-cl

    #

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    19

    設定変更が終わったらiptablesを再起動してください。

    # /etc/init.d/iptables restart

    # Firewall configuration written by system-config-securitylevel

    # Manual customization of this file is not recommended.

    *filter

    :INPUT ACCEPT [0:0]

    :FORWARD ACCEPT [0:0]

    :OUTPUT ACCEPT [0:0]

    :RH-Firewall-1-INPUT - [0:0]

    -A INPUT -j RH-Firewall-1-INPUT

    -A FORWARD -j RH-Firewall-1-INPUT

    -A RH-Firewall-1-INPUT -i lo -j ACCEPT

    ・・・中略・・・

    -A RH-Firewall-1-INPUT -j ACCEPT -p tcp -m tcp -s yyy.yyy.yyy.yyy --dport 873 --syn

    COMMIT

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    20

    5. rsyncの設定(同期元サーバ)

    rsyncを利用してデータ同期を行うには、同期元対象のデータがあるホストにrsyncをインストールす

    る必要があります。下記はrsyncの設定の一例です。

    本項ではクライアントがCentOS6の場合の設定例を記載しています。

    (※)オーバヘッドの少ないrsyncプロトコルを使った例であり、通信経路の暗号化を行う場合はssh

    プロトコルを使った設定が必要です。

    5.1. rsyncのインストール

    ① rsyncコマンドのインストール例(CentOS6の場合)

    ② /etc/rsyncd.passwd の設定

    起動スクリプトで利用するパスワードファイルを作成します。rsync(同期先)側で設定した、

    rsyncd.secretsのユーザ、パスワードのうち、パスワードのみを記載します。

    (例)password に設定する場合。

    5.2. rsyncの起動スクリプト

    rsyncの起動スクリプトを作成して、cron登録することで定期的に同期することができます。

    rsync起動スクリプト

    # echo “password” >> /etc/rsyncd.passwd

    # cat /etc/rsyncd.passwd

    password

    # chmod 600 /etc/rsyncd.passwd

    #

    #yum install –y rsync

    #

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    21

    (スクリプト例)rsync(同期先)サーバの IPが xxx.xxx.xxx.xxx、同期させたいディレクトリ /var

    の場合

    5.3. 定期実行の設定(cronの設定)

    ファイル同期を定期実行するために、cronの設定を行います。

    エディタで、/var/spool/cron/root に実行スケジュールを設定します。

    (設定例)30分毎に同期を実行、ログファイルを/tmp/backup.sh.logに上書きする。

    ・・・中略・・・

    30 * * * * /root/backup.sh > /tmp/backup.sh.log 2>&1

    # vi /var/spool/cron/root

    #!/bin/sh

    LOCK_DIR="/tmp/backup_lock"

    mkdir ${LOCK_DIR}

    if [ $? == 0 ];then

    rsync -a -E --delete --stats --password-file=/etc/rsyncd.passwd "/var/"

    "rsync://[email protected]/TEST"

    else exit1 > /dev/null 2>&1

    fi

    rmdir ${LOCK_DIR}

    # touch /root/backup.sh

    # chmod 700 /root/backup.sh

    # vi /root/backup.sh

    ■Password-file

    rsync(同期元)ので設定したパスワードを記載したファイル

    ■同期先ディレクトリの指定

    rsync://ユーザ名@IPアドレス/モジュール名

    ユーザ名、モジュール名はrsync(同期先)のrsyncd.conf設定したauth

    usersとModule options名

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    22

    6. ベースモデル(西日本)(CentOS 6) モジュール構成

    初期状態のモジュール構成は以下の通りです。

    インストールモジュールは「/usr/local/src/rpms_backup」に格納しています。

    amanda-backup_server-3.3.5-1.rhel6.x86_64.rpm

    rsync-3.0.6-9.el6_4.1.x86_64.rpm

    xinetd-2.3.14-39.el6_4.x86_64.rpm

    perl-Compress-Raw-Zlib-2.021-136.el6.x86_64.rpm

    perl-Compress-Zlib-2.021-136.el6.x86_64.rpm

    perl-HTML-Parser-3.64-2.el6.x86_64.rpm

    perl-HTML-Tagset-3.20-4.el6.noarch.rpm

    perl-IO-Compress-Base-2.021-136.el6.x86_64.rpm

    perl-IO-Compress-Zlib-2.021-136.el6.x86_64.rpm

    perl-JSON-2.15-5.el6.noarch.rpm

    perl-libwww-perl-5.833-2.el6.noarch.rpm

    perl-URI-1.40-2.el6.noarch.rpm

    perl-XML-Parser-2.36-7.el6.x86_64.rpm

    perl-XML-Simple-2.18-6.el6.noarch.rpm

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    23

    7. 注意事項

    ご注意

    本書の内容の一部または全部を無断転載することは禁じられています。

    本書の内容に関しては将来予告なしに変更することがあります。

  • Copyright © 2014 BIGLOBE. All Rights Reserved

    24

    BIGLOBEクラウドホスティング(西日本リージョン)

    バックアップ構築

    設定マニュアル

    1.0版 2014年7月

    ビッグローブ株式会社