我想设置 bacula——嗯,我的第一步已经成功了。
我的所有备份都写入 /bacula/backup。但是 / 只有 900GB。所以我想让 bacula 也写入 /sdb1/bacula/backup。/sdb1 还有 950GB 的空间。可用备份空间的总和应该是 1850GB HDD:
好吧,我得到了 /etc/bacula/bacula-sd.conf 的以下配置:
Storage { # definition of myself
Name = backup-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = backup.example.com
}
Director {
Name = backup-dir
Password = "doyoureallywanttoknow"
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /bacula/backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
好的 - 现在我想添加另一个设备。我想我可以像这样添加第二个条目:
Device {
Name = FileStorage
Media Type = File
Archive Device = /sdb1/bacula/backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
?
我是否必须进行其他更改以便 bacula 能够写入超过 900GB - 如果前 900GB 已“满”,它应该切换到第二个硬盘。