Bacula
如何在 bareos 中將設置值設置為 null?
我不斷收到此錯誤,我認為這是因為我的 JobDef 包含預設計劃:
31-Jan 23:30 bareOSdirector JobId 67: Error: Bareos bareOSdirector 16.2.4 (01Jul16): Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux 7.0 (wheezy) JobId: 67 Job: RestoreFiles.2017-01-31_23.30.32_23 Restore Client: bareOSdirector-fd Start time: 31-Jan-2017 23:30:52 End time: 31-Jan-2017 23:30:52 Elapsed time: 0 secs Files Expected: 0 Files Restored: 0 Bytes Restored: 0 Rate: 0.0 KB/s FD Errors: 2 FD termination status: SD termination status: FD Secure Erase Cmd: <NULL> SD Secure Erase Cmd: <NULL> Termination: *** Restore Error ***
如果我想在我的 JobDef 中保留使用哪個計劃的預設值,我需要用什麼值來覆蓋
RestoreFiles
作業Schedule
,以防止它執行?JobDefs { Name = "DefaultJob" Type = Backup Level = Incremental Messages = "standard" Storage = "bareOSdirector_FileStorage" Pool = "Daily" FullBackupPool = "Full" IncrementalBackupPool = "Incremental" DifferentialBackupPool = "Differential" FileSet = "SelfTest" Schedule = "WeeklyCycle" JobDefs = "DefaultJob" WriteBootstrap = "/var/lib/bareos/%c.bsr" } Job { Name = "RestoreFiles" Type = Restore Messages = "standard" Storage = "bareOSdirector_FileStorage" Pool = "Incremental" Client = "bareOSdirector-fd" FileSet = "LinuxAll" JobDefs = "DefaultJob" Where = "/tmp/bareos-restores" Schedule = ???? }
我可以通過在作業中設置來跳過
RestoreFiles
(禁用它),Enabled = "no"
在我這樣做之後它不再出現在計劃中。