Yes, I did restart the director after the change. I am using version
1.36.3. The Director is running on a FC 4 box and the machine I am
backing up is running RH 9.
Let me explain what I am trying to do and then tell me where I am
going wrong (should of done this to begin with so as not to waste
everyone's time!). I am backing up three boxes to Bacula with one of
the boxes is the system which Bacula Director runs on; it's name is
"Stud". I am trying to test a restore of one of the
boxes--"hailee1"-- to my testbox to see if it works. This is where I
am having problems. I take the full backup of the "hailee" box and
try to restore it on the "testbox". When I do a restore of the "Full
Backup" of the "hailee1" the "testbox" runs out of space and when I
look at the log it shows where 8.2 GB of data was being written to the
"testbox." When a Full Backup of "hailee1" is only about "4.3GB"! I
went ahead and unmounted the nfs mount point "/mnt/hailee" ---->
"/storage/hailee" on Stud, which is also a nfs server. After I did a
full backup of "hailee" and then restored to the testbox again
thinking it would work this time. No go. I could see in the
gnome-console where Bacula was still trying to restore
"/storage/hailee" even though it as unmounted! I don't get it.
Also, while looking at the logs scrolling by on the gnome-console, I
can see where Bacula is trying to restore files from my other box
"Porthos" to the testbox! I know this because some of the files I see
on the gnome console only belong to the "Porthos" box. I don't
understand that one! I have attached my bacula-dir.conf if it can help.
Any help is appreciated,
Trevor
Phil Stracchino wrote:
Trevor Morrison wrote:
Phil,
Thanks for the tip, but it still did not work. For what ever reason it
keeps backing up /mnt/hailee--the nfs mount. Any other suggestions.
You did reload or restart the Director after changing the fileset, right...?
What OS are you using and what version of Bacula?
------------------------------------------------------------------------
#
# Default Bacula Director Configuration file
#
# The only thing that MUST be changed is to add one or more
# file or directory names in the Include directive of the
# FileSet resource.
#
# For Bacula release 1.36.3 (22 April 2005) -- redhat (Stentz)
#
# You might also want to change the default email address
# from root to your address. See the "mail" and "operator"
# directives in the Messages resource.
#
Director { # define myself
Name = stud-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/usr/bacula/bin/query.sql"
WorkingDirectory = "/usr/bacula/bin/working"
PidDirectory = "/usr/bacula/bin"
Maximum Concurrent Jobs = 1
Password = "QiL5p4zWezlcHnUWGrMzPF+tIU30zZFsi0VSIpejHsdO" # Console
password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = stud-fd
FileSet = "Full Set Stud"
Schedule = "Daily"
Storage = 8mmDrive
Messages = Standard
Pool = Daily
Priority = 10
}
JobDefs {
Name = "DefaultJob-Porthos"
Type = Backup
Level = Incremental
Client = porthos-fd
FileSet = "Full Set Porthos"
Schedule = "Daily"
Storage = 8mmDrive
Messages = Standard
Pool = Daily
Priority = 10
}
JobDefs {
Name = "DefaultJob-Hailee1"
Type = Backup
Level = Incremental
Client = hailee1-fd
FileSet = "Full Set Hailee1"
Schedule = "Daily"
Storage = 8mmDrive
Messages = Standard
Pool = Daily
Priority = 10
}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /tmp
Job {
Name = "stud"
Type=Backup
Client=stud-fd
FileSet="Full Set Stud"
Schedule="Daily"
Storage=8mmDrive
Messages=Standard
Pool= Daily
JobDefs = "DefaultJob"
Write Bootstrap = "/usr/bacula/bin/working/stud.bsr"
}
Job {
Name = "Porthos"
Type=Backup
Client=porthos-fd
FileSet="Full Set Porthos"
Schedule="Daily"
Storage=8mmDrive
Messages=Standard
Pool=Daily
JobDefs = "DefaultJob"
Write Bootstrap = "/usr/bacula/bin/working/porthos.bsr"
}
Job {
Name = "Hailee1"
Type=Backup
Client=hailee1-fd
FileSet="Full Set Hailee1"
Schedule="Daily"
Storage=8mmDrive
Messages=Standard
Pool=Daily
JobDefs = "DefaultJob"
Write Bootstrap = "/usr/bacula/bin/working/hailee1.bsr"
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "Daily"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/usr/bacula/bin/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
RunAfterJob = "/usr/bacula/bin/delete_catalog_backup"
Write Bootstrap = "/usr/bacula/bin/working/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
# Standard Restore template, to be changed by Console program
Job {
Name = "RestoreFiles Stud"
Type = Restore
Client=stud-fd
FileSet="Full Set Stud"
Storage = 8mmDrive
Pool = Daily
Messages = Standard
Where = /tmp/bacula-restores
}
Job {
Name = "RestoreFiles Porthos"
Type = Restore
Client=porthos-fd
FileSet="Full Set Porthos"
Storage = 8mmDrive
Pool = Daily
Messages = Standard
Where = /tmp/bacula-restores
}
Job {
Name = "RestoreFiles Hailee1"
Type = Restore
Client=hailee1-fd
FileSet="Full Set Hailee1"
Storage = 8mmDrive
Pool = Daily
Messages = Standard
Where = /tmp/bacula-restores
}
Job {
Name = "RestoreFiles testbox"
Type = Restore
Client=testbox-fd
FileSet="Full Set Hailee1"
Storage = 8mmDrive
Pool = Daily
Messages = Standard
Where = /
}
# List of files to be backed up
FileSet {
Name = "Full Set Stud"
Include {
Options {
signature = MD5
Exclude=yes
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
# Note: / backs up everything on the root partition.
# if you have other partitons such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula build
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
File = /
File = /var
File = /usr
File = /storage
File = /home
File = /boot
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
# List of files to be backed up
FileSet {
Name = "Full Set Porthos"
Include {
Options {
signature = MD5
Exclude=yes
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
# Note: / backs up everything on the root partition.
# if you have other partitons such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula build
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
File = /
File = /var
File = /usr
File = /home
File = /boot
File = /chroot
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /mnt/porthos
File = /tmp
File = /.journal
File = /.fsck
}
}
# List of files to be backed up
FileSet {
Name = "Full Set Hailee1"
Include {
Options {
signature = MD5
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
# Note: / backs up everything on the root partition.
# if you have other partitons such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula build
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
File = /
File = /var
File = /usr
File = /home
File = /boot
}
#
# If you backup the root directory, the following two excluded
# files can be useful
# Directories must have a "/" on their end to work!!!!!!
Exclude {
File = /proc
File = /mnt/hailee/*
File = /tmp/*
File = /.journal
File = /.fsck
}
}
#
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
#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
#}
# Page 106 in the manual explains all this.
Schedule {
Name = "Daily"
Run = Full Fri at 10:00am
Run = Differential sat-thu at 9:00am
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /usr/bacula/bin/working/bacula.sql
}
}
# Client (File Services) to backup
Client {
Name = stud-fd
Address = stud.hailix.com
FDPort = 9102
Catalog = MyCatalog
Password = "HR1kfYn1dlc2enm1+mwg3yT3cNNfXqt9FitHbxVPmvPB" # password
for FileDaemon
File Retention = 8 days # 30 days
Job Retention = 9 days # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = porthos-fd
# Address = porthos.hailix.com
Address = 172.16.1.2
FDPort = 9102
Catalog = MyCatalog
Password = "HR1kfYn1dlc2enm1+mwg3yT3cNNfXqt9FitHbxVPmvPB" # password
for FileDaemon
File Retention = 8 days # 30 days
Job Retention = 9 days # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = hailee1-fd
# Address = hailee1.hailix.com
Address = 172.16.1.3
FDPort = 9102
Catalog = MyCatalog
Password = "HR1kfYn1dlc2enm1+mwg3yT3cNNfXqt9FitHbxVPmvPB" # password
for FileDaemon
File Retention = 8 Days # 30 days
Job Retention = 9 Days # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = testbox-fd
Address = 192.168.2.8
FDPort = 9102
Catalog = MyCatalog
#Password = "HR1kfYn1dlc2enm1+mwg3yT3cNNfXqt9FitHbxVPmvPB" # password
for FileDaemon
Password = "" # password for FileDaemon
File Retention = 8 Days # 30 days
Job Retention = 9 Days # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Definiton of file storage device
#Storage {
# Name = File
# Do not use "localhost" here
# Address = stud.hailix.com # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "lAskEHzAgzWVO3xgy0DAPH8rBJ5pocgaXMRiRQmmNK5u"
# Device = FileStorage
# Media Type = File
#}
# Definition of DDS tape storage device
#Storage {
# Name = DDS-4
# Do not use "localhost" here
# Address = stud.hailix.com # N.B. Use a fully qualified name
here
# SDPort = 9103
# Password = "lAskEHzAgzWVO3xgy0DAPH8rBJ5pocgaXMRiRQmmNK5u" #
password for Storage daemon
# Device = DDS-4 # must be same as Device in Storage
daemon
# Media Type = DDS-4 # must be same as MediaType in Storage
daemon
#}
# Also, out Storagte Daemon listing. Definition of 8mm tape storage device
Storage {
Name = "8mmDrive"
# Do not use "localhost" here
#Address = stud.hailix.com # N.B. Use a fully qualified name
here
Address = 192.168.2.10 # N.B. Use a fully qualified name here
SDPort = 9103
Password = "lAskEHzAgzWVO3xgy0DAPH8rBJ5pocgaXMRiRQmmNK5u"
Device = "Exabyte 8mm"
MediaType = "8mm"
}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = ""
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
# to replace the %r in the from field (-f part) with a single valid
# email address in both the mailcommand and the operatorcommand.
#
mailcommand = "/usr/bacula/bin/bsmtp -h hailee1.hailix.com -f \"\(Bacula\) %r\" -s
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/bacula/bin/bsmtp -h hailee1.hailix.com -f \"\(Bacula\) %r\" -s
\"Bacula: Intervention needed for %j\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED] = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/usr/bacula/bin/working/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/bacula/bin/bsmtp -h hailee1.hailix.com -f \"\(Bacula\) %r\" -s
\"Bacula daemon message\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
console = all, !skipped, !saved
append = "/usr/bacula/bin/working/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Daily
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
Recycle Current Volume= yes
AutoPrune = yes # Prune expired volumes
Volume Retention = 10 days # one year
Accept Any Volume = yes # write on any volume in the pool
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = stud-mon
Password = "S1+f60qKA6UdtDLgmupMxConk1XefZMJ3Z2gtzFiiZjt"
CommandACL = status, .status
}