Chinaunix

标题: ubuntu 下bacula 局域网备份 [打印本页]

作者: luruncu    时间: 2013-07-05 17:44
标题: ubuntu 下bacula 局域网备份
请问各位大侠,ubuntu 下bacula 局域网备份,手动执行后出现这个问题。执行后一直显示正在等待存储。


Running Jobs:
Console connected at 05-Jul-13 17:21
JobId Level   Name                       Status
======================================================================
    24 Full    BackupClient1.2013-07-05_17.22.03_03 is waiting on Storage "File"






这个是日志文件
05-Jul 17:22 ubuntu-dir JobId 24: No prior Full backup Job record found.
05-Jul 17:22 ubuntu-dir JobId 24: No prior or suitable Full backup found in catalog. Doing FULL backup.
05-Jul 17:22 ubuntu-dir JobId 24: Start Backup JobId 24, Job=BackupClient1.2013-07-05_17.22.03_03

改配置的地方都已配置好了,请问还有什么地方需要配置的?
作者: kooleon    时间: 2013-07-05 19:10
你的存储没做好吧?
作者: luruncu    时间: 2013-07-08 09:04
回复 2# kooleon

你好,你看一下这个是我的bacula-sd.conf 的备置文件,你看哪里出了问题了呢?

Heartbeat Interval = 30
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = ubuntu-dir
  Password = "D7oBX2DR0ECkFPA5llxCToOpQ3efm2cp_"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = ubuntu-mon
  Password = "pM56YftE-5Z0msGRETsoADh0IY5SbUMcJ"
  Monitor = yes
}

#
# Note, for a list of additional Device templates please
#  see the directory <bacula-source>/examples/devices
# Or follow the following link:
#  http://bacula.svn.sourceforge.ne ... a/examples/devices/
#

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType.
#

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /var/backups
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

#
# An autochanger device with two drives
#
#Autochanger {
#  Name = Autochanger
#  Device = Drive-1
#  Device = Drive-2

   
作者: kooleon    时间: 2013-07-08 09:20
本帖最后由 kooleon 于 2013-07-08 09:20 编辑

建议你去看一下高俊峰的《高性能Linux服务器构建实战:运维监控、性能调优与集群应用》,里面有关于bacula的详细使用。下面是我的bacula-sd.conf 配置,我的存储和主控端不是同一台服务器:
  1. Storage {                             # definition of myself
  2.   Name = aa-bacula-dd-sd
  3.   SDPort = 9103                  # Director's port
  4.   WorkingDirectory = "/opt/bacula/var/bacula/working"
  5.   Pid Directory = "/var/run"
  6.   Maximum Concurrent Jobs = 20
  7. }

  8. Director {
  9.   Name = aa-bacula-dd-dir
  10.   Password = "XXXXXXXXXXXXX"
  11. }

  12. Director {
  13.   Name = aa-bacula-dd-mon
  14.   Password = "XXXXXXXXXXXX"
  15.   Monitor = yes
  16. }



  17. Device {
  18.   Name = FileStorage
  19.   Media Type = File
  20.   Archive Device = /tmp
  21.   LabelMedia = yes;                   # lets Bacula label unlabeled media
  22.   Random Access = Yes;
  23.   AutomaticMount = yes;               # when device opened, read it
  24.   RemovableMedia = no;
  25.   AlwaysOpen = no;
  26. }


  27. Messages {
  28.   Name = Standard
  29.   director = aa-bacula-dd-dir = all
  30. }
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2