如何在 bareos 中将设置值设置为空?

如何在 bareos 中将设置值设置为空?

我不断收到此错误,我认为这是因为我的 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 中使用的计划的默认值,我需要用什么值来覆盖作业RestoreFilesSchedule值,以防止它运行?

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 = ????
}

答案1

我可以通过在作业中RestoreFiles进行设置来跳过(禁用它) ,执行此操作后它不再出现在计划中。Enabled = "no"

相关内容