Hello,
since my upgrade from fedora 16 to 21/22 my bacula setup isn't working
any more. I did check the password problem as described at bacula's FAQ
and didn't found any reason for not working. Bacula is v 7.05 (as in
fedora 22).
I get per email the following:
Bacula: Backup Error of tux64-fd Full
03-Jun 19:30 bacula-tux64-dir JobId 286: shell command: run BeforeJob
"/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
03-Jun 19:30 bacula-tux64-dir JobId 286: BeforeJob: Can't find your
catalog (MyCatalog) in director configuration
03-Jun 19:30 bacula-tux64-dir JobId 286: Error: Runscript: BeforeJob
returned non-zero status=1. ERR=Child exited with code 1
or
Bacula: Backup Fatal Error of tux64-fd Incremental
03-Jun 19:00 bacula-tux64-dir JobId 285: Start Backup JobId 285,
Job=tux64_System.2015-06-03_18.30.01_03
03-Jun 19:00 bacula-tux64-dir JobId 285: Warning: bsock.c:112 Could not
connect to Storage daemon on tux64.home.lan:9103. ERR=Verbindungsaufbau
abgelehnt
Retrying ...
=> Connection refused
Further by using console I get:
$ sudo bacula-tray-monitor -c /etc/bacula/tray-monitor.conf -d100
tray-monitor: bsock.c:208-0 Current [fe80::21f:d0ff:fe9d:e781]:9101 All
[fe80::21f:d0ff:fe9d:e781]:9101 192.168.1.11:65535
tray-monitor: bsock.c:208-0 Current 192.168.1.11:9101 All
[fe80::21f:d0ff:fe9d:e781]:9101 192.168.1.11:9101
tray-monitor: bsock.c:283-0 Could not connect to server Director daemon
tux64.home.lan:9101. ERR=Connection refused
tray-monitor: bsock.c:106-0 Unable to connect to Director daemon on
tux64.home.lan:9101. ERR=Connection refused
tray-monitor: bsock.c:208-0 Current [fe80::21f:d0ff:fe9d:e781]:9102 All
[fe80::21f:d0ff:fe9d:e781]:9102 192.168.1.11:65535
tray-monitor: bsock.c:208-0 Current 192.168.1.11:9102 All
[fe80::21f:d0ff:fe9d:e781]:9102 192.168.1.11:9102
tray-monitor: bsock.c:283-0 Could not connect to server File daemon
tux64.home.lan:9102. ERR=Connection refused
tray-monitor: bsock.c:106-0 Unable to connect to File daemon on
tux64.home.lan:9102. ERR=Connection refused
The services as such seems to work properly:
$ sudo systemctl status bacula-fd.service
● bacula-fd.service - Bacula-FileDaemon, a Backup-client
Loaded: loaded (/usr/lib/systemd/system/bacula-fd.service; enabled;
vendor preset: disabled)
Active: active (running) since Do 2015-06-04 15:56:31 CEST; 57min ago
Docs: man:bacula-fd(8)
Main PID: 847 (bacula-fd)
CGroup: /system.slice/bacula-fd.service
└─847 /usr/sbin/bacula-fd -f -c /etc/bacula/bacula-fd.conf
-u root -g root
Jun 04 15:56:31 tux64.home.lan systemd[1]: Started Bacula-FileDaemon, a
Backup-client.
Jun 04 15:56:31 tux64.home.lan systemd[1]: Starting Bacula-FileDaemon, a
Backup-client...
$ sudo systemctl status bacula-sd.service
● bacula-sd.service - Bacula-StorageDaemon, the storage-server
Loaded: loaded (/usr/lib/systemd/system/bacula-sd.service; enabled;
vendor preset: disabled)
Active: active (running) since Do 2015-06-04 15:56:31 CEST; 57min ago
Docs: man:bacula-sd(8)
Main PID: 851 (bacula-sd)
CGroup: /system.slice/bacula-sd.service
└─851 /usr/sbin/bacula-sd -f -c /etc/bacula/bacula-sd.conf
-u bacula -g tape
Jun 04 15:56:31 tux64.home.lan systemd[1]: Started Bacula-StorageDaemon,
the storage-server.
Jun 04 15:56:31 tux64.home.lan systemd[1]: Starting
Bacula-StorageDaemon, the storage-server...
$ sudo systemctl status bacula-dir.service
● bacula-dir.service - Bacula-Director, the Backup-server
Loaded: loaded (/usr/lib/systemd/system/bacula-dir.service; enabled;
vendor preset: disabled)
Active: active (running) since Do 2015-06-04 15:56:31 CEST; 58min ago
Docs: man:bacula-dir(8)
Main PID: 853 (bacula-dir)
CGroup: /system.slice/bacula-dir.service
└─853 /usr/sbin/bacula-dir -f -c /etc/bacula/bacula-dir.conf
-u bacula -g bacula
Jun 04 15:56:31 tux64.home.lan systemd[1]: Started Bacula-Director, the
Backup-server.
Jun 04 15:56:31 tux64.home.lan systemd[1]: Starting Bacula-Director, the
Backup-server...
Attached my compressed configs. What went wrong here?
Thanks,
Olaf
Director {
Name = bacula-tux64-dir
Description = "Main Bacula Director"
DIRport = 9101
DirAddress = tux64.home.lan
QueryFile = /etc/bacula/query.sql
WorkingDirectory = /var/spool/bacula
#PidDirectory = "/var/run/bacula"
PidDirectory = /var/run
Maximum Concurrent Jobs = 1 # 1 because there is 1 storage devices. See
pools.conf, devices.conf
Password = "DIR_PASSWORD" # BConsole password
Messages = Daemon
}
Console {
Name = bacula-tux64-mon
Password = "MON_DIR_PASSWORD"
CommandACL = status, .status
}
Catalog {
Name = MyCatalog
dbname = "bacula"
dbuser = "bacula"
dbpassword = ""
}
Client {
Name = tux32-fd
Address = tux32.home.lan
FDPort = 9102
Catalog = MyCatalog
Password = "FD_PASSWORD_2" # password for FileDaemon 2
File Retention = 30 days # 30 days
Job Retention = 6 months # 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = bacula-tux64-fd
Address = tux64.home.lan
FDPort = 9102
Catalog = MyCatalog
Password = "FD_PASSWORD" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # 6 months
AutoPrune = yes # Prune expired Jobs/Files
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = SHA1
compression = gzip
onefs = yes
}
File = /usr/bin
}
Exclude {
File = /var/spool/bacula
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /sys
File = /dev
}
}
FileSet {
Name = "Home Set"
Include {
Options {
Exclude = yes
RegexDir = "[cC]ache"
RegexDir = "\.gvfs/*"
WildDir = "*.thumbnails/*"
WildDir = "*.wine/*"
WildDir = "*/CEWE/*"
}
Options {
# no compression
signature = SHA1
ignore case = yes
WildFile = *.pdf
WildFile = *.odt
WildFile = *.ods
WildFile = *.jpg
WildFile = *.jpeg
WildFile = *.png
WildFile = *.gif
WildFile = *.mp3
WildFile = *.ogg
WildFile = *.avi
WildFile = *.mpg
WildFile = *.mpeg
WildFile = *.mp4
WildFile = *.mts
WildFile = *.flv
WildFile = *.swf
WildFile = *.mov
WildFile = *.gz
WildFile = *.tgz
WildFile = *.bz2
WildFile = *.tbz2
WildFile = *.z
WildFile = *.zip
WildFile = *.rar
}
Options {
# compression
signature = SHA1
compression = gzip
}
File = /home
File = /storage/home
ExcludeDirContaining = .no_backup
}
# exclude some dot files
#
http://askubuntu.com/questions/40992/what-files-and-directories-can-be-excluded-from-a-backup-of-the-home-directory
Exclude {
File = "*/.gvfs/*"
File = "*/.local/share/gvfs-metadata/*"
File = "*/.dbus/*"
File = "*/.cache/*"
File = "*/.cddb/*"
File = "*/.fontconfig/*"
# Flash-specific
File = "*/.adobe/*"
File = "*/.macromedia/*"
# other files
File = "*/.xsession-errors"
File = "*/.Xauthority" #
session-specific
File = "*/.ICEauthority"
File = "*/.gksu.lock"
File = "*/.pulse/*"
File = "*/.pulse-cookie"
File = "*/.esd_auth"
File = "*/lost+found/*"
# firefox specific
File = "*/.mozilla/firefox/*/Cache/*"
File = "*/.mozilla/firefox/*/minidumps/*" # in case Fx
crashes dumps will be stored in this
File = "*/.mozilla/firefox/*/.parentlock" #
session-specific
File = "*/.mozilla/firefox/*/urlclassifier3.sqlite" # phishing
database, recreated
File = "*/.mozilla/firefox/*/blocklist.xml" # blacklisted
extensions
File = "*/.mozilla/firefox/*/extensions.sqlite"
File = "*/.mozilla/firefox/*/extensions.sqlite-journal"
File = "*/.mozilla/firefox/*/extensions.rdf"
File = "*/.mozilla/firefox/*/extensions.ini"
File = "*/.mozilla/firefox/*/extensions.cache"
File = "*/.mozilla/firefox/*/XUL.mfasl" # cached UI
data, recreated
File = "*/.mozilla/firefox/*/XPC.mfasl"
File = "*/.mozilla/firefox/*/xpti.dat"
File = "*/.mozilla/firefox/*/compreg.dat"
File = "*/.mozilla/firefox/Crash Reports/*"
# Google Chrome
File = "*/.config/google-chrome/Default/Local Storage/*"
File = "*/.config/google-chrome/Default/Session Storage/*"
File = "*/.config/google-chrome/Default/Application Cache/*"
File = "*/.config/google-chrome/Default/History Index*"
# GnuPGP
File = "*/.gnupg/rnd"
File = "*/.gnupg/random_seed"
File = "*/.gnupg/.#*"
File = "*/.gnupg/*.lock"
File = "*/.gnupg/gpg-agent-info-*"
# DropBox
File = "*/.dropbox/*" # don't try to
restore and reinitialize either of
File = "*/.dropbox-dist/*" # these DIRs;
very messy results can happen
# other
File = "*/.java/deployment/cache/*" # Cached applets
File = "*/.gnome2/epiphany/favicon_cache/*"
}
# exclude specific user dirs
Exclude {
File = "*/Trash/*"
File = "*/Downloads/*"
File = "*/Dokumente/AudioBooks/*"
File = "*/Dropbox/"
File = "*/Ubuntu One/*"
File = "*/VirtualBox VMs/*"
File = "*/vm/*"
File = "*/MP3z/*"
File = "*/Downloads/*"
}
}
FileSet {
Name = "System Set"
Include {
Options {
signature = SHA1
compression = gzip
}
File = /etc
}
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = SHA1
compression = gzip
}
File = "/var/spool/bacula/bacula.sql"
}
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
Name = "tux64 Home"
JobDefs = "DefaultJob"
Client = bacula-tux64-fd
FileSet = "Home Set"
}
Job {
Name = "tux64 System"
JobDefs = "DefaultJob"
Client = bacula-tux64-fd
FileSet = "System Set"
RunAfterJob = "rsync -AarL
--exclude-from=/etc/bacula/bacula-conf-rsync-exclude.txt /etc/bacula/
/var/spool/bacula/volumes/recovery"
}
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Client = bacula-tux64-fd
Level = Full
FileSet = "Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
# Arguments to make_catalog_backup.pl are:
# make_catalog_backup.pl <catalog-name>
RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
# This deletes the copy of the catalog
RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 11 # run after main backup
}
Job {
Name = "RestoreFiles"
Type = Restore
Client = bacula-tux64-fd
FileSet = "Full Set"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s
\"Bacula: Intervention needed for %j\" %r"
mail = olaf@localhost = all, !skipped
operator = olaf@localhost = mount
console = all, !skipped, !saved
append = "/var/spool/bacula/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s
\"Bacula daemon message\" %r"
mail = olaf@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 90 days # 3 month
Label Format = "file-"
Maximum Volume Bytes = 4096M # Limit Volume size to something
reasonable, SAMSUNG HD502HI free 459GB -> 94x5G
Maximum Volumes = 110 # Limit number of Volumes in Pool
}
Pool {
Name = File-new
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 120 days # 4 month
Label Format = "file-"
Maximum Volume Bytes = 5G # Limit Volume size to something
reasonable
Maximum Volumes = 174 # Limit number of Volumes in Pool, about
871G
}
Pool {
Name = Scratch
Pool Type = Backup
}
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 18:30
Run = Differential 2nd-5th sun at 18:30
Run = Incremental mon-sat at 18:30
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 18:35
}
Storage {
Name = File
Address = tux64.home.lan # N.B. Use a fully qualified name here
SDPort = 9103
Password = "SD_PASSWORD"
Device = LocalFileStorage
Media Type = File
Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
}
Director {
Name = bacula-tux64-dir
Password = "FD_PASSWORD"
}
Director {
Name = bacula-tux64-mon
Password = "MON_FD_PASSWORD"
Monitor = yes
}
FileDaemon { # this is me
Name = bacula-tux64-fd
FDport = 9102 # where we listen for the director
FDAddress = tux64.home.lan # This is the client (not Director!)
address
WorkingDirectory = /var/spool/bacula
#Pid Directory = /var/run/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 10
Plugin Directory = /usr/lib64/bacula
}
Messages {
Name = Standard
director = bacula-tux64-dir = all, !skipped, !restored
}
Storage { # definition of myself
Name = bacula-tux64-sd
SDPort = 9103
SDAddress = tux64.home.lan
WorkingDirectory = /var/spool/bacula
#Pid Directory = /var/run/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 2
}
Director {
Name = bacula-tux64-dir
Password = "SD_PASSWORD"
}
Director {
Name = bacula-tux64-mon
Password = "MON_SD_PASSWORD"
Monitor = yes
}
Messages {
Name = Standard
director = bacula-tux64-dir = all
}
Device {
# SAMSUNG HD502HI
Name = LocalFileStorage #
UUID=44e68abc-4638-4bbb-a18d-bea3e92a3887
Media Type = File
Archive Device = /var/spool/bacula/volumes
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 5
}
Device {
Name = NULL
Media Type = NULL
Device Type = Fifo
Archive Device = /dev/null
LabelMedia = yes
Random Access = no
AutomaticMount = no
RemovableMedia = no
MaximumOpenWait = 60
AlwaysOpen = no
Maximum Concurrent Jobs = 5
}
Monitor {
Name = bacula-tux64-mon
Password = "MON_DIR_PASSWORD" # password for the Directors
RefreshInterval = 3 seconds
}
Client {
Name = bacula-tux64-fd
Address = tux64.home.lan
FDPort = 9102
Password = "MON_FD_PASSWORD" # password for FileDaemon
}
Storage {
Name = bacula-tux64-sd
Address = tux64.home.lan
SDPort = 9103
Password = "MON_SD_PASSWORD" # password for StorageDaemon
}
Director {
Name = bacula-tux64-dir
DIRport = 9101
Address = tux64.home.lan
}
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users