I"ve a problem with a windows client.the "becky" client is a
romote file storage,The following shows that problem.
[EMAIL PROTECTED] bin]# ./bacula start Starting the Bacula Storage daemon Starting the Bacula File daemon Starting the Bacula Director daemon [EMAIL PROTECTED] bin]# ./bconsole Connecting to Director backup:9101 1000 OK: backup-dir Version: 1.36.3 (22 April 2005) Enter a period to cancel a command. *run Using default Catalog name=MyCatalog DB=bacula A job name must be specified. The defined Job resources are: 1: Client1 2: becky 3: BackupCatalog 4: RestoreFiles 5: becky_RestoreFiles Select Job resource (1-5): 2 Run Backup job JobName: becky FileSet: becky Level: Incremental Client: becky-fd Storage: File Pool: Default When: 2005-07-12 15:44:40 Priority: 10 OK to run? (yes/mod/no): yes Job started. JobId=18 * You have messages. *messages 12-Jul 15:44 backup-dir: No prior Full backup Job record found. 12-Jul 15:44 backup-dir: No prior or suitable Full backup found. Doing FULL backup. 12-Jul 15:44 backup-dir: Start Backup JobId 18, Job=becky.2005-07-12_15.44.41 12-Jul 15:44 becky-fd: becky.2005-07-12_15.44.41 Fatal error: Failed to connect to Storage daemon: backup:9103 12-Jul 15:44 becky-fd: becky.2005-07-12_15.44.41 Error: ..\lib\../../lib/bnet.c:685 gethostbyname() for host "backup" failed: ERR=Authoritative answer for host not found. 12-Jul 15:44 backup-dir: becky.2005-07-12_15.44.41 Fatal error: Socket error from Filed on Storage command: ERR=No data available 12-Jul 15:44 backup-dir: becky.2005-07-12_15.44.41 Error: Bacula 1.36.3 (22Apr05): 12-Jul-2005 15:44:48 JobId: 18 Job: becky.2005-07-12_15.44.41 Backup Level: Full (upgraded from Incremental) Client: becky-fd FileSet: "becky" 2005-07-12 10:16:19 Pool: "Default" Storage: "File" Start time: 12-Jul-2005 15:44:43 End time: 12-Jul-2005 15:44:48 FD Files Written: 0 SD Files Written: 0 FD Bytes Written: 0 SD Bytes Written: 0 Rate: 0.0 KB/s Software Compression: None Volume name(s): Volume Session Id: 1 Volume Session Time: 1121154271 Last Volume Bytes: 0 Non-fatal FD errors: 0 SD Errors: 0 FD termination status: SD termination status: Waiting on FD Termination: *** Backup Error *** 12-Jul 15:44 backup-dir: message.c:462 Mail prog: bsmtp: bsmtp.c:276 Fatal
connect error to localhost: ERR=Connection refused
12-Jul 15:44 backup-dir: becky.2005-07-12_15.44.41 Error: message.c:473 Mail program terminated in error. CMD=/usr/local/bacula/bin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Backup Fatal Error of becky-fd Full" [EMAIL PROTECTED] ERR=Child exited with code 1 the following is my bacula-dir.conf:
Director
{
# define myself
Name = backup-dir DIRport = 9101 # where we listen for UA connections QueryFile = "/usr/local/bacula/bin/query.sql" WorkingDirectory = "/var/bacula" PidDirectory = "/var/run" Maximum Concurrent Jobs = 1 Password = "yrxkOVESHUh5FHf1sUgxgxFgmQPuFjtTO9e5TWo09mlz" # Console password Messages = Daemon } JobDefs { Name = "DefaultJob" Type = Backup Level = Incremental Client = backup-fd FileSet = "Full Set" Schedule = "WeeklyCycle" Storage = File Messages = Standard Pool = Default Priority = 10 } JobDefs { Name = "becky" Type = Backup Level = Incremental Client = becky-fd FileSet = "becky" Schedule = "WeeklyCycle" Storage = File Messages = Standard Pool = Default Priority = 10 } Job { Name = "Client1" JobDefs = "DefaultJob" Write Bootstrap = "/var/bacula/Client1.bsr" } Job { Name = "becky" JobDefs = "becky" Write Bootstrap = "/var/bacula/becky.bsr" } Job { Name = "BackupCatalog" JobDefs = "DefaultJob" Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" # This creates an ASCII copy of the catalog RunBeforeJob = "/usr/local/bacula/bin/make_catalog_backup bacula bacula" # This deletes the copy of the catalog RunAfterJob = "/usr/local/bacula/bin/delete_catalog_backup" Write Bootstrap = "/var/bacula/BackupCatalog.bsr" Priority = 11 # run after main backup } Job { Name = "RestoreFiles" Type = Restore Client=backup-fd FileSet="Full Set" Storage = File Pool = Default Messages = Standard Where = /tmp/backup1/bacula-restores } Job { Name = "becky_RestoreFiles" Type = Restore Client= becky-fd FileSet="becky" Storage = File Pool = Default Messages = Standard Where = /tmp/backup1/bacula-restores } FileSet { Name = "Full Set" Include { Options { signature = MD5 } File =/home/liujh } } FileSet { Name = "becky" Include { Options { signature = MD5 } File ="d:/WUTemp" } } Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 1:05 Run = Differential 2nd-5th sun at 1:05 Run = Incremental mon-sat at 1:05 } Schedule { Name = "WeeklyCycle" Run = Full 1st sun at 10:50 Run = Differential 2nd-5th sun at 1:00 Run = Incremental mon-sat at 1:00 }
Schedule { Name = "WeeklyCycleAfterBackup" Run = Full sun-sat at 1:10 } FileSet { Name = "Catalog" Include { Options { signature = MD5 } File = /var/bacula/bacula.sql } } Client { Name = backup-fd Address = backup FDPort = 9102 Catalog = MyCatalog Password = "/Tk5RBpbZWqGbeyLfkKrYhf9vvo9H3LCdIu/k/ArDfq4" # password for FileDaemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } Client { Name = becky-fd Address = 192.168.18.142 FDPort = 9102 Catalog = MyCatalog Password = "/Tk5RBpbZWqGbeyLfkKrYhf9vvo9H3LCdIu/k/ArDfq4" # password for File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } Storage { Name = File # Do not use "localhost" here Address = backup # N.B. Use a fully qualified name here SDPort = 9103 Password = "tlDzc8fo1Wo/FvIdHeAZqgFotlkj8FZw61BZzdYQN+cd" Device = FileStorage Media Type = File } Catalog { Name = MyCatalog dbname = bacula; user = bacula; password = "" } Messages { Name = Standard mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f
\"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r" mail = [EMAIL PROTECTED] = all, !skipped operator = [EMAIL PROTECTED] = mount console = all, !skipped, !saved append = "/var/bacula/log" = all, !skipped } Messages { Name = Daemon mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r" mail = [EMAIL PROTECTED] = all, !skipped console = all, !skipped, !saved append = "/var/bacula/log" = all, !skipped } Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes AutoPrune = yes # Prune expired volumes Volume Retention = 365 days # one year Accept Any Volume = yes # write on any volume in the pool } Console { Name = backup-mon Password = "3ZrRzUPcCmeLYjiGPj+LDaA/Gi4EuF1kCHuvb9AfjgBn" CommandACL = status, .status } anyone tell me what the problem is or how to modify the configration?
Any comments/advice would be
appretciated. |
- [Bacula-users] Still confuse of connecting the storage daemon liujh