Hello,
I've got a fresh install of 1.38.0 on FreeBSD6. So far backup jobs and restores to files and tapes work fine. One question, when defining a machine in the client resource is it better to use an IP or a dns name? I'm going to be getting in to backing up remote clients which is why i'm asking. I was wondering if someone could check out my director config, below, and tell me if it needs any optimization or could be condensed? I'd like to get it working before i get in to dvd-writing, has anyone tried it with the dvd+rw-tools port and 1.38.0, and encrypted communications between both internal network and external internet machines i want to back up, if anyone has any configs for that i'd like to hear from you as well. I'll write back with any sample files i come up with and firewall rules, i use pf, Kern mentioned he wanted to have some for the manual.
Good luck Kern on your sergery.
Thanks.
Dave.

#
# 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.38.0 (28 October 2005) -- freebsd 6.0-RELEASE
#
#  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 = zeus-dir
 DIRport = 9101                # where we listen for UA connections
 QueryFile = "/usr/local/share/bacula/query.sql"
 WorkingDirectory = "/var/db/bacula"
 PidDirectory = "/var/run"
 Maximum Concurrent Jobs = 1
 Password = "baculapassword1"
 Messages = Daemon
}

# jobs #################################################################

# Backup Job Template - Change with console program
Job {
 Name = "Manual Backup"
 Type = Backup
 Level = Full
 Client = zeus-fd
 FileSet = "zeus_full"
 Storage = File
 Messages = Standard
 Pool = Default
 Write Bootstrap = "/var/db/bacula/zeus.bsr"
}

Job {
 Name = "Backup_Zeus"
 Type = Backup
 Client = zeus-fd
 FileSet = "zeus_full"
 Schedule = "sat_fdddddd"
 Storage = File
 Messages = Standard
 Pool = zeus_pool
 Write Bootstrap = "/var/db/bacula/zeus.bsr"
 Priority = 10
}

Job {
 Name = "backup_wserv"
 Type = Backup
 Client = wserv-fd
 FileSet = "wserv_full"
 Schedule = "sat_fdddddd"
 Storage = File
 Messages = Standard
 Pool = wserv_pool
 Write Bootstrap = "/var/db/bacula/wserv.bsr"
 Priority = 10
}

Job {
 Name = "backup_satellite"
 Type = Backup
 Client = satellite-fd
 FileSet = "satellite_full"
 Schedule = "sat_fdddddd"
 Storage = File
 Messages = Standard
 Pool = satellite_pool
 Write Bootstrap = "/var/db/bacula/satellite.bsr"
 Priority = 10
}

Job {
 Name = "backup_titan"
 Type = Backup
 Client = titan-fd
 FileSet = "titan_full"
 Schedule = "sat_fdddddd"
 Storage = File
 Messages = Standard
 Pool = titan_pool
 Write Bootstrap = "/var/db/bacula/titan.bsr"
 Priority = 10
}

Job {
 Name = "backup_guardian"
 Type = Backup
 Client = guardian-fd
 FileSet = "guardian_full"
 Schedule = "sat_fdddddd"
 Storage = File
 Messages = Standard
 Pool = guardian_pool
 Write Bootstrap = "/var/db/bacula/guardian.bsr"
 Priority = 10
}

# Backup the catalog database (after the nightly save)
Job {
 Name = "BackupCatalog"
 Type = Backup
Level = Full
 Client=zeus-fd
 FileSet="Catalog"
 Schedule = "WeeklyCycleAfterBackup"
 Storage = File
 Messages = Standard
 Pool = FilePool
 Priority = 11                   # run after main backup
 # This creates an ASCII copy of the catalog
 RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula bacula"
 # This deletes the copy of the catalog
 RunAfterJob  = "/usr/local/share/bacula/delete_catalog_backup"
 Write Bootstrap = "/var/db/bacula/BackupCatalog.bsr"
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
 Name = "RestoreFiles"
 Type = Restore
 Client=zeus-fd
 FileSet="zeus_full"
 Storage = File
 Pool = Default
 Messages = Standard
 Where = /backup/bacula-restores
}

# filesets #############################################################

# List of files to be backed up
FileSet {
 Name = "zeus_full"
 Include {
options {
Compression=GZIP9
Signature=SHA1
}
   File = /
   File = /usr
   File = /var
   File = /home
 }
 Exclude {
   File = /proc
   File = /tmp
   File = /.journal
   File = /.fsck
   File = /usr/src
   File = /usr/ports
   File = /usr/doc
   File = /usr/share/doc
   File = /usr/obj
   File = /tmp
   File = /var/tmp
   }
 }

FileSet {
 Name = "wserv_full"
 Include {
options {
Compression=GZIP9
Signature=SHA1
}
   File = /
   File = /usr
   File = /var
   File = /home
 }
 Exclude {
   File = /proc
   File = /tmp
   File = /.journal
   File = /.fsck
   File = /usr/src
   File = /usr/ports
   File = /usr/doc
   File = /usr/share/doc
   File = /usr/obj
   File = /tmp
   File = /var/tmp
   }
 }

FileSet {
Name = "satellite_full"
Include {
options {
Compression=GZIP9
Signature=SHA1
}
File = c:/
}
Exclude {
# Most of these files are excluded not because we don't want
#  them, but because Win2K won't allow them to be backed up
#  except via proprietary Win32 API calls.
File = "/Documents and Settings/*/Application Data/*/Profiles/*/*/Cache/*"
File = "/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/[Uu][Ss][Rr][Cc][Ll][Aa][Ss][Ss].*"
File = "/Documents and Settings/*/[Nn][Tt][Uu][Ss][Ee][Rr].*"
File = "/Documents and Settings/*/Cookies/*"
File = "/Documents and Settings/*/Local Settings/History/*"
File = "/Documents and Settings/*/Local Settings/Temporary Internet Files/*"
File = "/Documents and Settings/*/Local Settings/Temp/*"
File = "/WINNT/CSC"
File = "/WINNT/security/logs/scepol.log"
File = "/WINNT/system32/config/*"
File = "/WINNT/msdownld.tmp/*"
File = "/WINNT/Internet Logs/*"
File = "/WINNT/$Nt*Uninstall*"
File = "/WINNT/Temp/*"
File = "/temp/*"
File = "/tmp/*"
File = "/pagefile.sys"
}
}

FileSet {
 Name = "titan_full"
 Include {
options {
Compression=GZIP9
Signature=SHA1
}
   File = /
 }
 Exclude {
   File = /proc
   File = /tmp
   File = /.journal
   File = /.fsck
   File = /usr/src
   File = /usr/doc
   File = /usr/share/doc
   File = /tmp
   File = /var/tmp
   }
 }

FileSet {
 Name = "guardian_full"
 Include {
options {
Compression=GZIP9
Signature=SHA1
}
   File = /
   File = /usr
   File = /var
   File = /home
 }
 Exclude {
   File = /proc
   File = /tmp
   File = /.journal
   File = /.fsck
   File = /usr/src
   File = /usr/ports
   File = /usr/doc
   File = /usr/share/doc
   File = /usr/obj
   File = /tmp
   File = /var/tmp
   }
 }

# This is the backup of the catalog
FileSet {
 Name = "Catalog"
 Include {
options {
Compression=GZIP9
Signature=SHA1
}
   File = /var/db/bacula/bacula.sql
 }
}

# schedules ############################################################

Schedule {
Name = "sat_fdddddd"
Run = Full sat at 11:00
Run = Differential sun-fri at 12:00
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
 Name = "WeeklyCycleAfterBackup"
 Run = Full sun-sat at 3:30
}

# Client (File Services) to backup
Client {
 Name = zeus-fd
 Address = 192.168.0.3
 FDPort = 9102
 Catalog = MyCatalog
 Password = "baculapassword1"           # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes                       # Prune expired Jobs/Files
}

Client {
 Name = wserv-fd
 Address = 192.168.0.4
 FDPort = 9102
 Catalog = MyCatalog
 Password = "baculapassword1"           # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes                       # Prune expired Jobs/Files
}

Client {
 Name = satellite-fd
 Address = 192.168.0.2
 FDPort = 9102
 Catalog = MyCatalog
 Password = "baculapassword1"           # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes                       # Prune expired Jobs/Files
}

Client {
 Name = titan-fd
 Address = 192.168.0.1
 FDPort = 9102
 Catalog = MyCatalog
 Password = "baculapassword1"           # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes                       # Prune expired Jobs/Files
}

Client {
 Name = guardian-fd
 Address = 192.168.0.254
 FDPort = 9102
 Catalog = MyCatalog
 Password = "baculapassword1"           # password for FileDaemon
 File Retention = 30 days
 Job Retention = 6 months
 AutoPrune = yes                       # Prune expired Jobs/Files
}

# storage ##############################################################
# Definition of file storage device
Storage {
 Name = File
Address = 192.168.0.3 # N.B. Use a fully qualified name here
 SDPort = 9103
 Password = "baculapassword1"
 Device = FileStorage
 Media Type = File
}

# Definition of Quantum DLT4000 Tape Storage Device
Storage {
 Name = "Quantum DLT4000"
Address = 192.168.0.3 # N.B. Use a fully qualified name here
 SDPort = 9103
 Password = "baculapassword1"           # password for Storage daemon
 Device = "Quantum DLT4000" # must be same as in the storage daemon
Media Type = DLT # must be same as MediaType in Storage daemon
}

# Definition of DVD storage device
Storage {
 Name = "DVD"
#  Do not use "localhost" here
 Address = zeus                # N.B. Use a fully qualified name here
 SDPort = 9103
 Password = "baculapassword1"
 Device = "DVD Writer"
 MediaType = "DVD"
}

# catalogs #############################################################
# Generic catalog service
Catalog {
 Name = MyCatalog
 dbname = bacula; user = bacula; password = ""
}

# messages #############################################################
# 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/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %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 = "/var/db/bacula/log" = all, !skipped
}

#
# Message delivery for daemon messages (no job).
Messages {
 Name = Daemon
mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula daemon message\" %r"
 mail = [EMAIL PROTECTED] = all, !skipped
 console = all, !skipped, !saved
 append = "/var/db/bacula/log" = all, !skipped
}

# pools ################################################################

# Default pool definition
Pool {
 Name = Default
 Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
 AutoPrune = yes                     # Prune expired volumes
 Volume Retention = 365 days
 Accept Any Volume = yes             # write on any volume in the pool
 LabelFormat = "TAPE-"
}

Pool {
Name = FilePool
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
 Volume Use Duration = 7 days
 LabelFormat = "hdd_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

pool {
Name = zeus_pool
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
 Volume Use Duration = 7 days
   LabelFormat = "zeus_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

pool {
Name = wserv_pool
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
 Volume Use Duration = 7 days
   LabelFormat = "wserv_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

pool {
Name = satellite_pool
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
 Volume Use Duration = 7 days
   LabelFormat = "satellite_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

pool {
Name = titan_pool
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
 Volume Use Duration = 7 days
   LabelFormat = "titan_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

pool {
Name = guardian_pool
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
 Volume Use Duration = 7 days
   LabelFormat = "guardian_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

Pool {
 Name = Catalogs
 Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
 AutoPrune = yes                     # Prune expired volumes
 Volume Retention = 8 days
 Accept Any Volume = yes             # write on any volume in the pool
 Maximum Volumes = 8
   LabelFormat = "catalog_${Year}${Month:p/2/0/r}${Day:p/2/0/r}"
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
 Name = zeus-mon
 Password = "baculapassword1"
 CommandACL = status, .status
}



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to