首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在bareos中将设置值设置为null?

如何在bareos中将设置值设置为null?
EN

Unix & Linux用户
提问于 2017-07-09 17:01:54
回答 1查看 58关注 0票数 2

我一直收到这个错误,我认为这是因为我的JobDef包含一个默认的时间表:

代码语言:javascript
复制
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,以防止它运行?

代码语言:javascript
复制
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 = ????
}
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2017-07-19 02:37:29

我能够跳过RestoreFiles (禁用它),方法是在作业中设置Enabled = "no",这样做之后它就不再出现在日程中了。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/377322

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档