Bacula Backup - 新增第二個分區來寫入文件

Bacula Backup - 新增第二個分區來寫入文件

我想設定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 已“滿”,則應切換到第二個硬碟。

相關內容