Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################
- # JOBS
- ##########################################
- Job {
- Name = "olaf"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = olaf
- }
- Job {
- Name = "violet"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = violet
- }
- Job {
- Name = "isadora"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = isadora
- }
- Job {
- Name = "duncan"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = duncan
- }
- Job {
- Name = "klaus"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = klaus
- }
- Job {
- Name = "quigley"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = quigley
- }
- Job {
- Name = "poe"
- JobDefs = "DefaultJob"
- Schedule = "MySchedule"
- Accurate=yes
- Client = poe
- }
- # My goal is:
- #
- # - Every weekday copy all my
- # scheduled VirtualFull to a tape
- # - These tapes will rotated every
- # weekday (sun,mon,thu,wed,thr,fri)
- # - No saturday, sunday will be run
- # backuping those 2 days
- # - These tapes will be labeled using
- # weekday names
- # Copy virtual to tape drive
- # This confguration doesn't looks
- # very elegant
- Job {
- Name = "virtual2tape"
- # I dont want schedule right now!
- #Schedule = "DailyCopy2Tape"
- # This is my Virtual Backup Pool
- Pool = "VirtualBackup"
- # I want to copy (not migrate)
- Type = Copy
- # Do I need a Migrate job to each
- # Job? If everything that I want
- # migrate is on a single volume?
- client = olaf
- # Do i need set a fileset? if I want
- # to copy everything from everyjob
- # inside a volume?
- FileSet = "linux-system-full"
- # This is the right Type?
- Selection Type = Job
- # Everything in that volume, this
- # works?
- Selection Pattern = "*"
- # Default things. Do not care about!
- Messages = Standard
- Write Bootstrap = "/usr/local/bacula/var/bacula/working/%c.bsr"
- Priority = 12 #run after virtual full
- }
- Job {
- Name = "CatalogBackup"
- JobDefs = "DefaultJob"
- Level = Full
- FileSet = "MyCatalog"
- client = duncan
- Schedule = "WeeklyCycleAfterBackup"
- RunBeforeJob = "/usr/local/bacula/etc/scripts/make_catalog_backup.pl Catalogo"
- RunAfterJob = "/usr/local/bacula/etc/scripts/delete_catalog_backup"
- Write Bootstrap = "/usr/local/bacula/var/bacula/working/%n.bsr"
- Priority = 13 # run after virtual2tape backup
- }
- JobDefs {
- Name = "DefaultJob"
- Type = Backup
- Level = Incremental
- FileSet = "linux-system-full"
- Schedule = "MySchedule"
- Storage = Disk
- Pool = Disk
- Priority = 10
- Messages = Standard
- Write Bootstrap = "/usr/local/bacula/var/bacula/working/%c.bsr"
- }
- # Restore Job
- Job {
- Name = "RestoreFiles"
- Type = Restore
- Client = duncan
- FileSet="linux-system-full"
- Storage = Disk
- Pool = Disk
- Messages = Standard
- Where = /tmp/bacula-restores/
- }
- ##########################################
- # Clientes
- ##########################################
- Client {
- Name = olaf
- Address = olaf
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = violet
- Address = violet
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = isadora
- Address = isadora
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = duncan
- Address = duncan
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = klaus
- Address = klaus
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = quigley
- Address = quigley
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = poe
- Address = poe
- FDPort = 9102
- Catalog = MyCatalog
- Password = ""
- File Retention = 30 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- ##########################################
- # SCHEDULES
- ##########################################
- Schedule {
- Name = "MySchedule"
- Run = Full Pool=Monthly 1st sun at 23:05
- Run = Differential Pool=Weekly 2nd-5th sun at 23:05
- Run = Incremental Pool=Daily mon-sat at 23:05
- Run = VirtualFull Pool=Disk Priority=11 sun-sat at 23:10
- }
- # This schedule isnt right, is it?
- #Schedule {
- # Name = "DailyCopy2Tape"
- # Run = Full sun-fri at 23:15
- #}
- Schedule {
- Name = "WeeklyCycleAfterBackup"
- Run = Full sun-sat at 23:20
- }
- ##########################################
- # POOLS
- ##########################################
- Pool {
- Name = Disk
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- LabelFormat = "Vol"
- Volume Retention = 365 days
- Maximum Volume Bytes = 20G
- Maximum Volumes = 10
- Next Pool = VirtualBackup
- }
- Pool {
- Name = Monthly
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- LabelFormat = "Monthly"
- Volume Retention = 104 days
- File Retention = 105 days
- Maximum Volumes = 10
- Next Pool = VirtualBackup
- }
- Pool {
- Name = Weekly
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- LabelFormat = "Weekly"
- Volume Retention = 42 days
- File Retention = 43 days
- Maximum Volumes = 10
- Next Pool = VirtualBackup
- }
- Pool {
- Name = Daily
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- LabelFormat = "Daily"
- Volume Retention = 7 days
- File Retention = 8 days
- Maximum Volumes = 10
- Next Pool = VirtualBackup
- }
- Pool {
- Name = VirtualBackup
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- File Retention = 1d
- Volume Retention = 1d
- Maximum Volumes = 1
- Label Format = "Virtual"
- Storage = Virtual
- Next Pool = vtape
- }
- Pool {
- Name = vtape
- Pool Type = Backup
- Storage = SDT-11000
- Recycle = yes
- AutoPrune = yes
- LabelFormat = "vtape"
- File Retention = 1d
- Volume Retention = 1d
- Maximum Volumes = 1
- }
- ##########################################
- # FILE SETS
- ##########################################
- FileSet {
- Name = "linux-system-full"
- Include {
- Options {
- signature = MD5
- OneFS = no
- Compression = GZIP
- NoAtime = Yes
- CheckFileChanges = No
- ACLSupport = Yes
- ReadFIFO = No
- }
- File = /
- }
- Exclude {
- File = .tmp
- File = .journal
- File = .fsck
- File = cache
- File = /lost+found
- File = /backup
- File = /proc
- File = /tmp
- File = /sys
- File = /dev
- File = /var/tmp
- File = /cdrom
- File = /media
- File = /mnt
- File = /srv/iso
- }
- }
- FileSet {
- Name = "MyCatalog"
- Include {
- Options {
- signature = MD5
- }
- File = "/usr/local/bacula/var/bacula/working/bacula.sql"
- }
- }
- #########################################
- # DIRECTOR ! About ME!
- #########################################
- Director {
- Name = Director
- Password =
- Messages = Daemon
- Working Directory = "/usr/local/bacula/var/bacula/working"
- Pid Directory = "/var/run/bacula/"
- QueryFile = "/usr/local/bacula/etc/scripts/query.sql"
- Maximum Concurrent Jobs = 2
- }
- Messages {
- Name = Standard
- mailcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
- mail = root@ = all, !skipped
- operator = root@ = mount
- console = all, !skipped, !saved
- append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
- catalog = all, !skipped, !saved
- }
- Messages {
- Name = Daemon
- mailcommand = "/usr/local/bacula/sbin/bsmtp -h mail -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = root@ = all, !skipped
- console = all, !skipped, !saved
- append = "/usr/local/bacula/var/bacula/working/log" = all, !skipped
- catalog = all, !skipped, !saved
- }
- ################################
- # STORAGES
- ################################
- Storage {
- Name = Disk
- Address = olaf
- SDPort = 9103
- Password = ""
- Device = Disk
- Media Type = File
- }
- Storage {
- Name = Virtual
- Address = olaf
- SDPort = 9103
- Password = ""
- Device = Virtual
- Media Type = File
- }
- Storage {
- Name = SDT-11000
- Device = SDT-11000
- Address = olaf
- SDPort = 9103
- Password = ""
- Media Type = DDS-4
- Autochanger = no
- }
- Storage {
- Name = DVDRW
- Address = olaf
- SDPort = 9103
- Password = ""
- Device = "DVDRW"
- MediaType = "DVD-5"
- }
- ################################
- # CATALOG
- ################################
- Catalog {
- Name = MyCatalog
- dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport = 5432
- dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
- }
- #################################
- # CONSOLE
- #################################
- Console {
- Name = duncan-mon
- Password = ""
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement