Вспомнил из новостей о данном чуде, возникла необходимость развернуть.
Поднял директор+сторэдж на сервере (CentOS 5.3), пытаюсь забэкапить ноутбук (FreeBSD 9.0).
Конфигурация примерно такая:
- Директор:
Director { Name = backup-dir DIRport = 9101 QueryFile = "/etc/bacula/query.sql" WorkingDirectory = "/var/bacula/working" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "XXX" Messages = Daemon } ### STORAGE CONFIGURATION ### Storage { Name = storage Address = 127.0.0.1 SDPort = 9103 Password = "XXX" Device = FileStorage Media Type = File } ### CLIENT CONFIGURATION ### Client { Name = laptop-backup-fd Address = 10.1.2.161 FDPort = 9102 Catalog = MyCatalog Password = "XXX" File Retention = 30 days Job Retention = 6 months AutoPrune = yes } ### DEFAULT INHERITABLE JOB ### JobDefs { Name = "Default" Type = Backup Level = Incremental Schedule = "WeeklyCycle" Storage = storage Messages = Daemon Priority = 1 Write Bootstrap = "/var/bacula/working/%c.bsr" } ### JOBS ### Job { Name = "RestoreFiles" Type = Restore FileSet="default" Storage = storage Client = laptop-backup-fd Pool = default Messages = Standard Where = /backup/bacula-restores } Job { JobDefs = "Default" Name = "GFORGX" Pool = default Client = laptop-backup-fd FileSet = "default" } ### FILESETS ### FileSet { Name = "default" Include { File = /etc } } ### SCHEDULING ### Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 23:05 Run = Differential 2nd-5th sun at 23:05 Run = Incremental mon-sat at 23:05 } ### CATALOG ### Catalog { Name = MyCatalog dbname = "bacula"; dbuser = "bacula"; dbpassword = "" } ### LOGGING/EVENT MANAGEMENT ### Messages { Name = Standard mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" mail = admin@XXX = all, !skipped operator = admin@XXX = mount console = all, !skipped, !saved append = "/var/bacula/working/log" = all, !skipped catalog = all } Messages { Name = Daemon mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" mail = admin@XXX = all, !skipped console = all, !skipped, !saved append = "/var/bacula/working/log" = all, !skipped } ### POOL CONFIGURATION ### Pool { Name = default Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 365 days } Pool { Name = Scratch Pool Type = Backup } ### RESTRICTED CONSOLE ### Console { Name = backup-mon Password = "XXX" CommandACL = status, .status }
- Storage:
Storage { Name = backup-sd SDPort = 9103 WorkingDirectory = "/var/bacula/working" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 Heartbeat Interval = 30 sec } Director { Name = backup-dir Password = "XXX" } Device { Name = FileStorage Media Type = File Archive Device = /backup LabelMedia = yes; Random Access = Yes; AutomaticMount = yes; RemovableMedia = no; AlwaysOpen = no; } Messages { Name = Standard director = backup-dir = all }
- FD на ноутбуке:
Director { Name = backup-dir Password = "XXX" } FileDaemon { Name = laptop-backup-fd FDport = 9102 WorkingDirectory = /var/bacula/working Pid Directory = /var/run Maximum Concurrent Jobs = 20 } Messages { Name = Standard director = backup-dir = all, !skipped, !restored }
Когда пытаюсь запустить backup - долго что-то делает, потом выплёвывает ошибки.
С файрволлингом, вроде как, всё нормально, судя по tcpdump на обеих сторонах всё идёт нормально.
Лог сессии bconsole:
29-Янв 20:22 backup-dir JobId 9: Fatal error: Socket error on Storage command: ERR=Нет доступных данных
29-Янв 20:22 backup-dir JobId 9: Fatal error: Network error with FD during Backup: ERR=Нет доступных данных
29-Янв 20:22 backup-dir JobId 9: Fatal error: No Job status returned from FD.
29-Янв 20:22 backup-dir JobId 9: Error: Bacula backup-dir 5.0.0 (26Jan10): 29-Янв-2010 20:22:40
Build OS: i686-pc-linux-gnu redhat
JobId: 9
Job: GFORGX.2010-01-29_20.10.59_17
Backup Level: Full (upgraded from Incremental)
Client: "laptop-backup-fd" 5.0.0 (26Jan10) i386-unknown-freebsd9.0,freebsd,9.0-CURRENT
FileSet: "default" 2010-01-29 20:08:16
Pool: "default" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "storage" (From Job resource)
Scheduled time: 29-Янв-2010 20:10:57
Start time: 29-Янв-2010 20:11:01
End time: 29-Янв-2010 20:22:40
Elapsed time: 11 mins 39 secs
Priority: 1
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 6
Volume Session Time: 1264772580
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: Error
SD termination status: Waiting on FD
Termination: *** Backup Error ***
Заранее спасибо.