itnifl
asked on
Bacula backup error
I can't get my debian backups to work. Trying to back up files from a laptop to the backup server. I have tried setting both FQDN and ip adress in Address under Storage. Laptop runs windows vista and has the bacula client set up correctly:
*status client
The defined Client resources are:
1: TravelMate-fd
2: MediaPC-fd
Select Client (File daemon) resource (1-2): 1
Connecting to Client TravelMate-fd at 192.168.1.106:9102
TravelMate-fd Version: 5.0.3 (04 August 2010) VSS Linux Cross-compile Win32
Daemon started 31-Dec-10 08:32. Jobs: run=0 running=0.
Heap: heap=0 smbytes=15,004 max_bytes=16,649 bufs=59 max_bufs=72
Sizeof: boffset_t=8 size_t=4 debug=0 trace=1
Running Jobs:
Director connected at: 01-Jan-11 17:22
No Jobs running.
====
Terminated Jobs:
====
-------------------------- ---------- ---------- ---------- ---------- ---------- --------
[root@homelab init.d]# bconsole
Connecting to Director homelab.nodenet.local:9101
1000 OK: homelab.nodenet.local-dir Version: 5.0.3 (04 August 2010)
Enter a period to cancel a command.
*messages
01-Jan 13:17 TravelMate-fd JobId 8: Warning: /home/kern/bacula/k/bacula /src/lib/b sock.c:128 Could not connect to Storage daemon on 192.168.1.101:9103. ERR=Operasjonen er utført.
Retrying ...
01-Jan 13:33 TravelMate-fd JobId 8: Warning: /home/kern/bacula/k/bacula /src/lib/b sock.c:128 Could not connect to Storage daemon on 192.168.1.101:9103. ERR=Operasjonen er utført.
Retrying ...
01-Jan 13:47 TravelMate-fd JobId 8: Fatal error: /home/kern/bacula/k/bacula /src/lib/b sock.c:134 Unable to connect to Storage daemon on 192.168.1.101:9103. ERR=Operasjonen er utført.
01-Jan 13:47 TravelMate-fd JobId 8: Fatal error: Failed to connect to Storage daemon: 192.168.1.101:9103
01-Jan 13:47 homelab.nodenet.local-dir JobId 8: Fatal error: Bad response to Storage command: wanted 2000 OK storage
, got 2902 Bad storage
01-Jan 13:47 homelab.nodenet.local-dir JobId 8: Error: Bacula homelab.nodenet.local-dir 5.0.3 (04Aug10): 01-Jan-2011 13:47:26
Build OS: x86_64-unknown-linux-gnu redhat
JobId: 8
Job: Backup_SchoolFiles.2011-01 -01_13.16. 57_03
Backup Level: Full
Client: "TravelMate-fd" 5.0.3 (04Aug10) Linux,Cross-compile,Win32
FileSet: "SchoolWorkFileSet" 2010-12-12 10:19:15
Pool: "TravelMate" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "SmallStorage" (From Job resource)
Scheduled time: 01-Jan-2011 13:16:34
Start time: 01-Jan-2011 13:16:59
End time: 01-Jan-2011 13:47:26
Elapsed time: 30 mins 27 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: 1
Volume Session Time: 1293884147
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 ***
*status client
The defined Client resources are:
1: TravelMate-fd
2: MediaPC-fd
Select Client (File daemon) resource (1-2): 1
Connecting to Client TravelMate-fd at 192.168.1.106:9102
TravelMate-fd Version: 5.0.3 (04 August 2010) VSS Linux Cross-compile Win32
Daemon started 31-Dec-10 08:32. Jobs: run=0 running=0.
Heap: heap=0 smbytes=15,004 max_bytes=16,649 bufs=59 max_bufs=72
Sizeof: boffset_t=8 size_t=4 debug=0 trace=1
Running Jobs:
Director connected at: 01-Jan-11 17:22
No Jobs running.
====
Terminated Jobs:
====
--------------------------
[root@homelab init.d]# bconsole
Connecting to Director homelab.nodenet.local:9101
1000 OK: homelab.nodenet.local-dir Version: 5.0.3 (04 August 2010)
Enter a period to cancel a command.
*messages
01-Jan 13:17 TravelMate-fd JobId 8: Warning: /home/kern/bacula/k/bacula
Retrying ...
01-Jan 13:33 TravelMate-fd JobId 8: Warning: /home/kern/bacula/k/bacula
Retrying ...
01-Jan 13:47 TravelMate-fd JobId 8: Fatal error: /home/kern/bacula/k/bacula
01-Jan 13:47 TravelMate-fd JobId 8: Fatal error: Failed to connect to Storage daemon: 192.168.1.101:9103
01-Jan 13:47 homelab.nodenet.local-dir JobId 8: Fatal error: Bad response to Storage command: wanted 2000 OK storage
, got 2902 Bad storage
01-Jan 13:47 homelab.nodenet.local-dir JobId 8: Error: Bacula homelab.nodenet.local-dir 5.0.3 (04Aug10): 01-Jan-2011 13:47:26
Build OS: x86_64-unknown-linux-gnu redhat
JobId: 8
Job: Backup_SchoolFiles.2011-01
Backup Level: Full
Client: "TravelMate-fd" 5.0.3 (04Aug10) Linux,Cross-compile,Win32
FileSet: "SchoolWorkFileSet" 2010-12-12 10:19:15
Pool: "TravelMate" (From Job resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "SmallStorage" (From Job resource)
Scheduled time: 01-Jan-2011 13:16:34
Start time: 01-Jan-2011 13:16:59
End time: 01-Jan-2011 13:47:26
Elapsed time: 30 mins 27 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: 1
Volume Session Time: 1293884147
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 ***
#######bacula-dir.conf
Director { # define myself
Name = homelab.nodenet.local-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 4
Password = "BbtRki7isMESK7NZwERrKYm2s6Sqcz4mz0oDPjcGue21" # Console password
Messages = Daemon
}
JobDefs {
Name = "GeneralSmallBackup"
Type = Backup
Level = Incremental
Schedule = "WeeklyCycle"
Storage = BigStorage
Messages = Standard
Pool = File
Priority = 3
Write Bootstrap = "/var/bacula/working/%c.bsr"
}
Job {
Name = "Backup_SchoolFiles"
JobDefs = "GeneralSmallBackup"
Type = Backup
Client=TravelMate-fd
FileSet="SchoolWorkFileSet"
Storage = SmallStorage
Pool = TravelMate
Messages = Standard
}
Job {
Name = "RestoreSchoolFiles_to_TravelMate"
Type = Restore
Client=TravelMate-fd
FileSet="SchoolWorkFileSet"
Storage = SmallStorage
Pool = TravelMate
Messages = Standard
}
FileSet {
Name = "SchoolWorkFileSet"
Include {
Options {
signature = MD5
}
File = "C:\Users\Atle\Desktop\Creative_Creations\DiverseSkole"
}
}
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
}
Client {
Name = TravelMate-fd
Address = 192.168.1.106
FDPort = 9102
Catalog = MyCatalog
Password = "Rydjzk/3skGkbKAu/PUh5/u3AjpGRuJiwGkxe0caAMqr" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Storage {
Name = SmallStorage
Address = 192.168.1.101 # N.B. Use a fully qualified name here
SDPort = 9103
Password = "behUB6X+qmIVmjVPvt8H1ib3ducEiacNM3xQgvzN++eA"
Device = SmallStorage
Media Type = File
}
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "root"; dbpassword = "ohYeah"; dbaddress= 127.0.0.1
}
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 = root@localhost = all, !skipped
operator = root@localhost = 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 = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/bacula/working/log" = all, !skipped
}
Pool {
Name = TravelMate
Pool Type = Backup
LabelFormat = "TravelMate-"
AutoPrune = yes
VolumeRetention = 365
Maximum Volumes = 6
Recycle = yes
}
Console {
Name = homelab.nodenet.local-mon
Password = "5SoFCmVBob9+/D8P/Bf/SNWDdiKsof4BE72vAOOlpKd+"
CommandACL = status, .status
}
#######bacula-fd.conf:
Director {
Name = homelab.nodenet.local-dir
Password = "Rydjzk/3skGkbKAu/PUh5/u3AjpGRuJiwGkxe0caAMqr"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the file daemon
#
Director {
Name = homelab.nodenet.local-mon
Password = "wIead219yYQwD/00aUnp2SlN2KUtPpotCFUdG8Oemz6s"
Monitor = yes
}
#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = homelab.nodenet.local-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = homelab.nodenet.local-dir = all, !skipped, !restored
}
######bacula-sd.conf:
Storage { # definition of myself
Name = homelab.nodenet.local-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = homelab.nodenet.local-dir
Password = "behUB6X+qmIVmjVPvt8H1ib3ducEiacNM3xQgvzN++eA"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = homelab.nodenet.local-mon
Password = "4q5tdL/J2zzzIhA7yREi6bJ12i5sx9ls4kOMaeM3LWMf"
Monitor = yes
}
Device {
Name = SmallStorage
Media Type = File
Archive Device = /home/SDB1/Backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Device {
Name = MediumStorage
Media Type = File
Archive Device = /home/SDA5/Backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Device {
Name = BigStorage
Media Type = File
Archive Device = /home/SDC5/Backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = homelab.nodenet.local-dir = all
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Should have seen that, but thanks.