Baculaconfexample

From Siwiki

Revision as of 08:15, 7 April 2010 by Cindys (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

[edit] Bacula Configuration Example

bacula-dir.conf file for one system:

########## orion ##########
Job {
 Name = "orion-core"
 Client = orion-fd
 JobDefs = "DefaultJob"
 FileSet = "orion-core"
 Schedule = "WeeklyCycleFri"
 Write Bootstrap = "/opt/csw/var/bacula/working/orion-core.bsr"
}

FileSet {
 Name = "orion-core"
 Ignore FileSet Changes = yes
 Include {
   Options {
     signature = MD5
     compression = GZIP
   }
   File = /
   File = /var
   File = /export
   File = /export/home
 }
 Exclude {
   ###  NOTE: probably don't need these since they are separate file systems anyway
   # special/tmpfs
   File = /dev/fd
   File = /devices
   File = /etc/mnttab
   File = /etc/svc/volatile
   File = /proc
   File = /system/contract
   File = /system/object
   File = /tmp
   File = /var/run
   File = /vol

   # automounted
   File = /home
   File = /net
   File = /repository

   # raids
   File = /pool0
   File = /pool1

   # don't backup large ISO's
   File = /export/iso

   # exclude backup working directory
   File = /opt/csw/var/bacula/working
 }
}

Job {
 Name = "orion-zones"
 Client = orion-fd
 JobDefs = "DefaultJob"
 FileSet = "orion-zones"
 Schedule = "WeeklyCycleSat"
 Write Bootstrap = "/opt/csw/var/bacula/working/orion-zones.bsr"
}

FileSet {
 Name = "orion-zones"
 Ignore FileSet Changes = yes
 Include {
   Options {
     wilddir = "/pool*/zones/dev"
     Exclude = yes
     signature = MD5
     compression = GZIP
   }
   # NOTE: every file system must be listed since bacula doesn't cross fs boundary
   File = /pool0/zones
   File = /pool0/zones/backup
   File = /pool0/zones/gpdatabase2
   File = /pool0/zones/gpscanner2
   File = /pool0/zones/sun_backup
 }
}


Job {
 Name = "orion-raid"
 Client = orion-fd
 JobDefs = "DefaultJob"
 FileSet = "orion-raid"
 Schedule = "WeeklyCycleThu"
 Write Bootstrap = "/opt/csw/var/bacula/working/orion-raid.bsr"
}

FileSet {
 Name = "orion-raid"
 Ignore FileSet Changes = yes
 Include {
   Options {
     signature = MD5
     compression = GZIP
   }

   # repository, content, home
   File = /pool0
   File = /pool0/gprotect1
 }
 Exclude {
   File = /pool0/backup
   File = /pool0/sun_backup
   File = /pool0/zones
 }
}
Solaris Internals
Personal tools
The Books
The Ads