Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 5.0.1 (24 February 2010) -- debian 5.0.4
- #
- # 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 = bacula-server01-dir
- DIRport = 9101 # where we listen for UA connections
- QueryFile = "/etc/bacula/scripts/query.sql"
- WorkingDirectory = "/var/lib/bacula"
- PidDirectory = "/var/run/bacula"
- Maximum Concurrent Jobs = 1
- Password = "jhIoXJvQkNGGoPjrJqvdhNB8YGBmK4PFa" # Console password
- Messages = Daemon
- DirAddress = 0.0.0.0
- }
- #########################################################
- # JOB DEFINITION #
- #########################################################
- Job {
- Name = "client01"
- Type = Backup
- Level = Differential
- Client = bacula-client01-fd
- FileSet = "Default_Filebackup_Set"
- Schedule = "client01WeeklyCycle"
- Storage = File-Server01
- Messages = Standard
- Pool = Client01Pool
- Full Backup Pool = Client01FullPool
- Priority = 10
- }
- Job {
- Name = "server01"
- Type = Backup
- Level = Differential
- Client = bacula-server01-fd
- FileSet = "Default_Filebackup_Set"
- Schedule = "server01WeeklyCycle"
- Storage = File-Server01
- Messages = Standard
- Pool = Server01Pool
- Full Backup Pool = Server01FullPool
- Priority = 10
- }
- #########################################################
- # FILE SET DEFINITION #
- #########################################################
- FileSet {
- Name = "Default_Filebackup_Set"
- Include {
- Options {
- signature = MD5
- }
- File = /
- File = /boot
- }
- Exclude {
- File = /proc
- File = /tmp
- File = /.journal
- File = /.fsck
- File = /mnt
- File = /media
- File = /export/backup
- File = /store
- }
- }
- FileSet {
- Name = "Catalog"
- Include {
- Options {
- signature = MD5
- }
- File = /var/lib/bacula/bacula.sql
- }
- }
- #########################################################
- # SCHEDULE DEFINITION #
- #########################################################
- Schedule {
- Name = "client01WeeklyCycle"
- Run = Full 2nd sun at 03:05
- Run = Differential tue at 03:05
- Run = Differential thu at 03:05
- Run = Differential sat at 03:05
- }
- Schedule {
- Name = "server01WeeklyCycle"
- Run = Full 2nd sun at 03:05
- Run = Differential tue at 04:05
- Run = Differential thu at 04:05
- Run = Differential sat at 04:05
- }
- #Schedule {
- # Name = "ChezaWeeklyCycle"
- # Run = Full 2nd sun at 05:05
- # Run = Differential tue at 05:05
- # Run = Differential thu at 05:05
- # Run = Differential sat at 05:05
- #}
- #########################################################
- # CLIENT DEFINITION #
- #########################################################
- Client {
- Name = bacula-server01-fd
- Address = localhost
- FDPort = 9102
- Catalog = MyCatalog
- Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Client {
- Name = bacula-client01-fd
- Address = bacula-client01
- FDPort = 9102
- Catalog = MyCatalog
- Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = yes # Prune expired Jobs/Files
- }
- #########################################################
- # STORAGE DEFINITION #
- #########################################################
- Storage {
- Name = File-Client01
- Address = bacula-server01 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "k4TE0sb8dI50Jt6nRIYcEd8iVw6wTznga"
- Device = FileStorage-client01
- Media Type = File
- Heartbeat Interval = 15
- }
- Storage {
- Name = File-Server01
- Address = bacula-server01 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "k4TE0sb8dI50Jt6nRIYcEd8iVw6wTznga"
- Device = FileStorage-server01
- Media Type = File
- Heartbeat Interval = 15
- }
- #########################################################
- # CATALOG DEFINITION #
- #########################################################
- Catalog {
- Name = MyCatalog
- dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "_beN1801"
- }
- #########################################################
- # POOL DEFINITION #
- #########################################################
- Pool {
- Name = Client01Pool
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 14 days
- Recycle = yes
- Recycle Oldest Volume = yes
- #Accept Any Volume = yes # write on any volume in the pool
- Maximum Volume Jobs = 1
- LabelFormat = "client01"
- }
- Pool {
- Name = Client01FullPool
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 30 days # one year
- Recycle = yes
- Recycle Oldest Volume = yes
- #Accept Any Volume = yes # write on any volume in the pool
- Maximum Volume Jobs = 1
- LabelFormat = "clien01Full"
- }
- Pool {
- Name = Server01Pool
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 14 days
- Recycle = yes
- Recycle Oldest Volume = yes
- #Accept Any Volume = yes # write on any volume in the pool
- Maximum Volume Jobs = 1
- LabelFormat = "server01"
- }
- Pool {
- Name = Server01FullPool
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 30 days # one year
- Recycle = yes
- Recycle Oldest Volume = yes
- #Accept Any Volume = yes # write on any volume in the pool
- Maximum Volume Jobs = 1
- LabelFormat = "server01Full"
- }
- #########################################################
- # MISC DEFINITION #
- #########################################################
- 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 = bacula@nebuk.de = all, !skipped
- operator = bacula@nebuk.de = mount
- console = all, !skipped, !saved
- append = "/var/lib/bacula/log" = all, !skipped
- }
- Messages {
- Name = Daemon
- mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
- mail = bacula@nebuk.de = all, !skipped
- console = all, !skipped, !saved
- append = "/var/lib/bacula/log" = all, !skipped
- }
- Console {
- Name = bacula-server01-mon
- Password = "zAMF6f9Xc1WbDrDtoNwUjvEa7EW1kr8pP"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement