Bacula : コンポーネントの設定2024/09/19 |
|
Bacula 関連コンポーネントを設定します。 |
|
| [1] | Bacula Director の設定です。 |
|
root@dlp:~ #
vi /usr/local/etc/bacula/bacula-dir.conf
Director { # define myself
# 19行目 : Director デーモンの名前変更
# 任意の名称でよいが Director デーモンの名前の箇所は名前を合わせる必要がある
Name = dlp.srv.world-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/usr/local/share/bacula/query.sql"
WorkingDirectory = "/var/db/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
# 25行目 : Director デーモンのパスワード
Password = "password" # Console password
Messages = Daemon
}
.....
.....
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
# 33行目 : File デーモンの名前変更
# 後ほど設定する File デーモンの名前と合わせる
Client = dlp.srv.world-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
.....
.....
Job {
Name = "RestoreFiles"
Type = Restore
# 93行目 : File デーモンの名前変更
# 後ほど設定する File デーモンの名前と合わせる
Client = dlp.srv.world-fd
Storage = File1
# The FileSet and Pool directives are not used by Restore Jobs
# but must not be removed
FileSet="Full Set"
Pool = File
Messages = Standard
# 100行目 : リストアファイルを保管するディレクトリ
Where = /tmp/bacula-restores
.....
.....
# 125行目 : バックアップ取得対象のディレクトリ
File = /etc
}
.....
.....
Client {
# 93行目 : File デーモンの名前変更
# 後ほど設定する File デーモンの名前と合わせる
Name = dlp.srv.world-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
# 177行目 : File デーモンのパスワード
Password = "password" # password for FileDaemon
File Retention = 60 days # 60 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
.....
.....
Autochanger {
Name = File1
# Do not use "localhost" here
# 203行目 : ホスト名を FQDN で設定
Address = dlp.srv.world # N.B. Use a fully qualified name here
SDPort = 9103
# 205行目 : Storage デーモンのパスワード
Password = "password"
Device = FileChgr1
Media Type = File1
Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
Autochanger = File1 # point to ourself
}
.....
.....
Catalog {
Name = MyCatalog
# 242行目 : DB 接続用パスワード
dbname = "bacula"; dbuser = "bacula"; dbpassword = "password"
}
.....
.....
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
# 303行目 : ボリューム保持期間
Volume Retention = 365 days # one year
# ボリュームの最大容量
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
# ボリュームの最大数
Maximum Volumes = 100 # Limit number of Volumes in Pool
# ボリュームに付加する接頭辞
Label Format = "Vol-" # Auto label
}
.....
.....
Console {
# 320行目 : tray-monitor の名前変更
# 任意の名称でよいが tray-monitor の名前の箇所は名前を合わせる必要がある
Name = dlp.srv.world-mon
# tray-monitor のパスワード
Password = "password"
CommandACL = status, .status
}
root@dlp:~ #
vi /usr/local/etc/bacula/bconsole.conf
Director {
# Director デーモンの名前変更
# 先に指定した Director デーモンの名前と合わせる
Name = dlp.srv.world-dir
DIRport = 9101
address = localhost
# Director デーモンのパスワード
Password = "password"
}
~
root@dlp:~ # service bacula-dir enable bacula_dir enabled in /etc/rc.conf root@dlp:~ # service bacula-dir start Starting bacula_dir. |
| [2] | Bacula Storage の設定です。 |
|
root@dlp:~ #
vi /usr/local/etc/bacula/bacula-sd.conf
Storage {
# 18行目 : Storage デーモンの名前変更
# 任意の名称でよいが Storage デーモンの名前の箇所は名前を合わせる必要がある
Name = dlp.srv.world-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/db/bacula"
Pid Directory = "/var/run"
Plugin Directory = "/usr/local/lib"
Maximum Concurrent Jobs = 20
Encryption Command = "/usr/local/share/bacula/key-manager.py getkey"
}
Director {
# 31行目 : Director デーモンの名前変更
# 先に指定した Director デーモンの名前と合わせる
Name = dlp.srv.world-dir
# Director デーモンのパスワード
Password = "password"
}
.....
.....
Director {
# 40行目 : tray-monitor の名前変更
# 任意の名称でよいが tray-monitor の名前の箇所は名前を合わせる必要がある
Name = dlp.srv.world-mon
# tray-monitor のパスワード
Password = "password"
Monitor = yes
}
root@dlp:~ # service bacula-sd enable bacula_sd enabled in /etc/rc.conf root@dlp:~ # service bacula-sd start Starting bacula_sd. |
| [3] | Bacula File の設定です。 |
|
root@dlp:~ #
vi /usr/local/etc/bacula/bacula-fd.conf
Director {
# 18行目 : Director デーモンの名前変更
# 先に指定した Director デーモンの名前と合わせる
Name = dlp.srv.world-dir
# Director デーモンのパスワード
Password = "password"
}
.....
.....
Director {
# 27行目 : tray-monitor の名前変更
# 任意の名称でよいが tray-monitor の名前の箇所は名前を合わせる必要がある
Name = dlp.srv.world-mon
# tray-monitor のパスワード
Password = "password"
Monitor = yes
}
FileDaemon {
# 36行目 : File デーモンの名前変更
# 任意の名称でよいが File デーモンの名前の箇所は名前を合わせる必要がある
Name = dlp.srv.world-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/db/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
Plugin Directory = /usr/local/lib
}
root@dlp:~ # service bacula-fd enable bacula_fd enabled in /etc/rc.conf root@dlp:~ # service bacula-fd start Starting bacula_fd. |
| Sponsored Link |
|
|