Bacula : コンポーネントの設定2022/07/20 |
|
Bacula 関連コンポーネントを設定します。
|
|
| [1] | Bacula Director の設定です。 |
|
[root@dlp ~]#
vi /etc/bacula/bacula-dir.conf
Director { # define myself
Name = bacula-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/spool/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
# 25行目 : コンソール接続パスワードを設定
Password = "password" # Console password
Messages = Daemon
}
.....
.....
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
# 110行目 : 追記 (GZIP 圧縮を有効)
Compression = GZIP
}
.....
.....
# 126行目 : バックアップ対象のディレクトリを指定
File = /home
}
.....
.....
Client {
Name = bacula-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
# 178行目 : 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
# 204行目 : 注釈の通り、[localhost] ではなく自ホストの FQDN に変更
Address = dlp.srv.world # N.B. Use a fully qualified name here
SDPort = 9103
# 206行目 : 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
# 243行目 : MariaDB の bacula ユーザーのパスワード
dbname = "bacula"; dbuser = "bacula"; dbpassword = "password"
}
.....
.....
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
# 304行目 : ボリューム保持期間
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
}
.....
.....
# 322行目 : tray-monitor 接続パスワード
Console {
Name = bacula-mon
Password = "password"
CommandACL = status, .status
}
[root@dlp ~]#
vi /etc/bacula/bconsole.conf
Director {
Name = bacula-dir
DIRport = 9101
address = localhost
# Director に設定したコンソール接続パスワード
Password = "password"
}
~
[root@dlp ~]# systemctl enable --now bacula-dir |
| [2] | Bacula Storage の設定です。 |
|
[root@dlp ~]#
vi /etc/bacula/bacula-sd.conf
Director {
Name = bacula-dir
# 31行目 : Storage デーモン接続パスワード
Password = "password"
}
.....
.....
# 40行目 : tray-monitor 接続パスワード
Director {
Name = bacula-mon
Password = "password"
Monitor = yes
}
[root@dlp ~]# systemctl enable --now bacula-sd |
| [3] | Bacula File の設定です。 |
|
[root@dlp ~]#
vi /etc/bacula/bacula-fd.conf
Director {
Name = bacula-dir
# 19行目 : File デーモン接続パスワード
Password = "password"
}
.....
.....
# 28行目 : tray-monitor 接続パスワード
Director {
Name = bacula-mon
Password = "password"
Monitor = yes
}
[root@dlp ~]# systemctl enable --now bacula-fd |
| Sponsored Link |
|
|