Bacula

インストール

# portinstall sysutils/bacula-server

[ ] MTX
[ ] MYSQL
[x] NLS
[x] OPENSSL
[x] PGSQL
[ ] PYTHON
[ ] SQLITE3
データベースを作成
su pgsql
cd /usr/local/share/bacula
./create_bacula_database
./make_bacula_tables
./grant_bacula_privileges
設定ファイル
cd /usr/local/etc/bacula/
cp -p bacula-dir.conf.sample bacula-dir.conf
cp -p bacula-fd.conf.sample bacula-fd.conf
cp -p bacula-sd.conf.sample bacula-sd.conf
cp -p bconsole.conf.sample bconsole.conf

(途中)

設定

それから、もう一つ重要な設定が、FileSet設定のoptions(こちらの95行目以降)設定で、こちらで
Compression=GZIP
と指定しておかないと、バックアップしたファイルが無圧縮でディスクに保存されてしまい非効率なことこの上ありません。
LunaTear: Bacula (9) 設定例


http://www.bacula.org/en/dev-manual/main/main/Automated_Disk_Backup.html

Considerations for Multiple Clients
http://www.bacula.org/en/dev-manual/main/main/Basic_Volume_Management.html#SECTION002350000000000000000

設定ファイルの分割方法
Bacula - Users - Split bacula-dir.conf file in many .conf files

セキュリティ

undef-fd : localhost : allow
undef-sd : localhost : allow
undef-dir : localhost : allow
undef-fd : ALL : deny
undef-sd : ALL : deny
undef-dir : ALL : deny

You must adjust the names to be the same as the Name directives found in each of the daemon configuration files. They are, in general, not the same as the binary daemon names. It is not possible to use the daemon names because multiple daemons may be running on the same machine but with different configurations.

http://www.bacula.org/manuals/en/install/install/Bacula_Security_Issues.html

操作

リストア

リストア先のクライアントを変更する場合は
OK to run? (yes/mod/no): mod