Hi,
I've problems backing up remote clients. Local backup is working fine so far. I've tried several things and googled much hours, but without
any luck. I'm really confused how to fix this issue.
Here is my configuration:
############## begin /etc/bacula/bacula-sd.conf ##############
Storage {
Name = trbackupserver-sd
SDPort = 9103
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = 0.0.0.0
}
Name = trbackupserver-sd
SDPort = 9103
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = 0.0.0.0
}
Director {
Name = trbackupserver-dir
Password = "xxx"
}
Name = trbackupserver-dir
Password = "xxx"
}
Director {
Name = trphoenix-dir
Password = "xxx"
}
Name = trphoenix-dir
Password = "xxx"
}
Director {
Name = trbackupserver-mon
Password = "xxx"
Monitor = yes
}
Name = trbackupserver-mon
Password = "xxx"
Monitor = yes
}
Autochanger {
Name = Autochanger
Device = Drive-1
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
}
Name = Autochanger
Device = Drive-1
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
}
Device {
Name = Drive-1
Device Type = Tape
Media Type = LTO-3
Archive Device = /dev/st0
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
RandomAccess = no
Maximum File Size = 4GB
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
Alert Command = "sh -c 'smartctl -H -l error %c'"
}
Name = Drive-1
Device Type = Tape
Media Type = LTO-3
Archive Device = /dev/st0
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
RandomAccess = no
Maximum File Size = 4GB
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
Alert Command = "sh -c 'smartctl -H -l error %c'"
}
Messages {
Name = Standard
director = trbackupserver-dir = all
}
Name = Standard
director = trbackupserver-dir = all
}
############## end /etc/bacula/bacula-sd.conf ##############
############## begin /etc/bacula/bacula-dir.conf ##############
Director {
Name = trbackupserver-dir
DIRport = 9101
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "xxx"
Messages = Daemon
FD Connect Timeout = 1 minute
SD Connect Timeout = 1 minute
}
Name = trbackupserver-dir
DIRport = 9101
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "xxx"
Messages = Daemon
FD Connect Timeout = 1 minute
SD Connect Timeout = 1 minute
}
JobDefs {
Name = "Full"
Type = Backup
Level = Full
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Name = "Full"
Type = Backup
Level = Full
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
JobDefs {
Name = "Incremental"
Type = Backup
Level = Incremental
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Name = "Incremental"
Type = Backup
Level = Incremental
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Client {
Name = trbackupserver-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = "xxx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Job {
Name = "trbackupserver_so_full"
Client = "trbackupserver-fd"
Fileset = "trbackupserver-fs"
JobDefs = "Full"
Schedule = "trbackupserver-sc"
Full Backup Pool = Default
}
Job {
Name = "trbackupserver_wd_incr"
Client = "trbackupserver-fd"
FileSet = "trbackupserver-fs"
JobDefs = "Incremental"
Schedule = "trbackupserver-sc"
Incremental Backup Pool = Default
}
Name = "trbackupserver_wd_incr"
Client = "trbackupserver-fd"
FileSet = "trbackupserver-fs"
JobDefs = "Incremental"
Schedule = "trbackupserver-sc"
Incremental Backup Pool = Default
}
Schedule {
Name = "trbackupserver-sc"
Run = Full sun at 06:00
Run = Incremental mon-sat at 06:00
}
Name = "trbackupserver-sc"
Run = Full sun at 06:00
Run = Incremental mon-sat at 06:00
}
FileSet {
Name = "trbackupserver-fs"
Include {
File = /home
File = /etc
File = /usr
}
}
Name = "trbackupserver-fs"
Include {
File = /home
File = /etc
File = /usr
}
}
Client {
Name = trphoenix-fd
Address = 10.50.1.16
FDPort = 9102
Catalog = MyCatalog
Password = "xxx"
File Retention = 30 d
Job Retention = 6 months
AutoPrune = yes
}
Catalog = MyCatalog
Password = "xxx"
File Retention = 30 d
Job Retention = 6 months
AutoPrune = yes
}
Job {
Name = "trphoenix_so_full"
Client = "trphoenix-fd"
Fileset = "trphoenix-fs"
JobDefs = "Full"
Schedule = "trphoenix-sc"
Full Backup Pool = Default
}
Name = "trphoenix_so_full"
Client = "trphoenix-fd"
Fileset = "trphoenix-fs"
JobDefs = "Full"
Schedule = "trphoenix-sc"
Full Backup Pool = Default
}
Job {
Name = "trphoenix_wd_incr"
Client = "trphoenix-fd"
FileSet = "trphoenix-fs"
JobDefs = "Incremental"
Schedule = "trphoenix-sc"
Incremental Backup Pool = Default
}
Name = "trphoenix_wd_incr"
Client = "trphoenix-fd"
FileSet = "trphoenix-fs"
JobDefs = "Incremental"
Schedule = "trphoenix-sc"
Incremental Backup Pool = Default
}
Schedule {
Name = "trphoenix-sc"
Run = Full sun at 01:00
Run = Incremental mon-sat at 01:00
}
Name = "trphoenix-sc"
Run = Full sun at 01:00
Run = Incremental mon-sat at 01:00
}
FileSet {
Name = "trphoenix-fs"
Include {
File = /home
File = /etc
File = /usr
}
}
Name = "trphoenix-fs"
Include {
File = /home
File = /etc
File = /usr
}
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = trbackupserver-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/%n.bsr"
Priority = 11
}
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/%n.bsr"
Priority = 11
}
Job {
Name = "RestoreFiles"
Type = Restore
Client = trbackupserver-fd
FileSet = "Full Set"
Storage = Drive-1
Pool = Default
Messages = Standard
Where = /restore
}
Name = "RestoreFiles"
Type = Restore
Client = trbackupserver-fd
FileSet = "Full Set"
Storage = Drive-1
Pool = Default
Messages = Standard
Where = /restore
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /usr/sbin
}
Exclude {
File = /var/lib/bacula
File = /nonexistant/path/to/file/archive/dir
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /usr/sbin
}
Exclude {
File = /var/lib/bacula
File = /nonexistant/path/to/file/archive/dir
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
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
}
Name = "WeeklyCycle"
Run = Full 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
}
}
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
}
}
Storage {
Name = Drive-1
Address = localhost
SDPort = 9103
Password = "xxx"
Device = Autochanger
Media Type = LTO-3
Autochanger = yes
}
Catalog {
Name = MyCatalog
dbname = "bacula"; DB Address = "10.50.1.76"; dbuser = "bacula"; dbpassword = "Moor3oe+na"
}
Name = MyCatalog
dbname = "bacula"; DB Address = "10.50.1.76"; dbuser = "bacula"; dbpassword = "Moor3oe+na"
}
Messages {
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/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/lib/bacula/log" = all, !skipped
catalog = all
}
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/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/lib/bacula/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/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
}
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
Pool {
Name = Scratch
Pool Type = Backup
}
Name = Scratch
Pool Type = Backup
}
Console {
Name = trbackupserver-mon
Password = "xxx"
CommandACL = status, .status
}
Name = trbackupserver-mon
Password = "xxx"
CommandACL = status, .status
}
############## end /etc/bacula/bacula-dir.conf ##############
############## begin /etc/bacula/bacula-fd.conf local on trbackupserer ##############
Director {
Name = trbackupserver-dir
Password = "xxx"
}
Name = trbackupserver-dir
Password = "xxx"
}
Director {
Name = trbackupserver-mon
Password = "xxx"
Monitor = yes
}
Name = trbackupserver-mon
Password = "xxx"
Monitor = yes
}
FileDaemon { # this is me
Name = trbackupserver-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
}
Name = trbackupserver-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
director = trbackupserver-dir = all, !skipped, !restored
}
Name = Standard
director = trbackupserver-dir = all, !skipped, !restored
}
############## end /etc/bacula/bacula-fd.conf local on trbackupserer ##############
############## begin /etc/bacula/bacula-dir.conf remote on trphoenix ##############
Director {
Name = trbackupserver-dir
Password = "xxx"
}
Name = trbackupserver-dir
Password = "xxx"
}
FileDaemon { # this is me
Name = trphoenix-fd
FDAddress = 0.0.0.0
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Name = trphoenix-fd
FDAddress = 0.0.0.0
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
console = all
}
Name = Standard
console = all
}
############## end /etc/bacula/bacula-dir.conf remote on trphoenix ##############
Thanks!
Kind regards,
Martin
------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users