バックアップサーバ構築 ~BoxBakupサーバ設定①~ [BoxBakup]
インストール続いて、サーバ側の各設定をする。
まだディスク増設していないので既存のディスク上に、バックアブするフォルダを作成。
あわせて、権限もbbstoredに変更。
最初これを無視して、進めていたらraidfile.confがないみたいなこと言われたのでこの設定必須なのか?
確かにバックアップなので、ディスクRAIDにするのが普通ですけどハード的にRAID0だけど...
続いて環境設定です。
/etc/boxbackupは、環境ファイルなど各設定ファイルがはいる、ベースフォルダです。
pinocchioはバックアップのサーバ名、これがのちのち不具合の原因でした。
家庭内LNA内向きDNSなどたててなかったためか、このサーバ名NGでした。
SSL設定、クライアントアカウント設定と続きます。
バックアップ用フォルダの設定
まずは、バックアップ用のフォルダーを用意。まだディスク増設していないので既存のディスク上に、バックアブするフォルダを作成。
あわせて、権限もbbstoredに変更。
$ sudo mkdir /home/bkup [enter]
$ sudo chown bbstored /home/bkup [enter]
$ sudo chgrp bbstored /home/bkup [enter]
$ sudo chown bbstored /home/bkup [enter]
$ sudo chgrp bbstored /home/bkup [enter]
RAIDの設定
バックアップ用のディスクの設定でRAIDの設定をするらしい。最初これを無視して、進めていたらraidfile.confがないみたいなこと言われたのでこの設定必須なのか?
確かにバックアップなので、ディスクRAIDにするのが普通ですけどハード的にRAID0だけど...
$ raidfile-config /etc/boxbackup 8192 /home/bkup [enter]
WARNING: userland RAID is disabled.
Config file written.
WARNING: userland RAID is disabled.
Config file written.
続いて環境設定です。
環境設定
環境設定は、BoxBackupをインスールしたときには一緒にはいっている、bbstored-configを使います。$ sudo bbstored-config /etc/boxbackup pinocchio bbstored [enter]
/etc/boxbackupは、環境ファイルなど各設定ファイルがはいる、ベースフォルダです。
pinocchioはバックアップのサーバ名、これがのちのち不具合の原因でした。
家庭内LNA内向きDNSなどたててなかったためか、このサーバ名NGでした。
Checking permissions on /home/bkup
Checking permissions on /home/bkup
Checking permissions on /home/bkup
Setup bbstored config utility.
Configuration:
Writing configuration file: /etc/boxbackup/bbstored.conf
Writing empty accounts file: /etc/boxbackup/bbstored/accounts.txt
Server hostname: pinocchio
RaidFile config: /etc/boxbackup/raidfile.conf
Creating blank accounts file
Generating private key...
 :
Writing configuration file /etc/boxbackup/bbstored.conf
=========================================================
bbstored basic configuration complete.
What you need to do now...
1) Sign /etc/boxbackup/bbstored/pinocchio-csr.pem
using the bbstored-certs utility.
2) Install the server certificate and root CA certificate as
/etc/boxbackup/bbstored/pinocchio-cert.pem
/etc/boxbackup/bbstored/clientCA.pem
3) You may wish to read the configuration file
/etc/boxbackup/bbstored.conf
and adjust as appropraite.
4) Create accounts with bbstoreaccounts
5) Start the backup store daemon with the command
/usr/local/sbin/bbstored
in /etc/rc.local, or your local equivalent.
=========================================================
この後は、上記のような手順で作るようですね。Checking permissions on /home/bkup
Checking permissions on /home/bkup
Setup bbstored config utility.
Configuration:
Writing configuration file: /etc/boxbackup/bbstored.conf
Writing empty accounts file: /etc/boxbackup/bbstored/accounts.txt
Server hostname: pinocchio
RaidFile config: /etc/boxbackup/raidfile.conf
Creating blank accounts file
Generating private key...
 :
Writing configuration file /etc/boxbackup/bbstored.conf
=========================================================
bbstored basic configuration complete.
What you need to do now...
1) Sign /etc/boxbackup/bbstored/pinocchio-csr.pem
using the bbstored-certs utility.
2) Install the server certificate and root CA certificate as
/etc/boxbackup/bbstored/pinocchio-cert.pem
/etc/boxbackup/bbstored/clientCA.pem
3) You may wish to read the configuration file
/etc/boxbackup/bbstored.conf
and adjust as appropraite.
4) Create accounts with bbstoreaccounts
5) Start the backup store daemon with the command
/usr/local/sbin/bbstored
in /etc/rc.local, or your local equivalent.
=========================================================
SSL設定、クライアントアカウント設定と続きます。
コメント 0