Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Default Bareos 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 Bareos release 12.4.4 (12 June 2013) -- debian Debian GNU/Linux 7.0 (wheezy)
- #
- # 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 = archeo-dir
- QueryFile = "/usr/lib/bareos/scripts/query.sql"
- Maximum Concurrent Jobs = 1
- Password = "A0TSIVhnOl5KVYSlp2cn/U3yQ+m/QRT2B1TMTQmNzo4k" # Console password
- Messages = Daemon
- # remove comment in next line to load plugins from specified directory
- # Plugin Directory = /usr/lib/bareos/plugins
- }
- Client {
- Name = desktop-s68026q-fd
- Address = desktop-s68026q
- Password = "Cw5d2/3X5UI1DRg4gyVls90Vs57vr2w/KfAzyD9j1xeW"
- # uncomment the following if using bacula
- # Catalog = "MyCatalog"
- }
- JobDefs {
- Name = "DefaultJob"
- Type = Backup
- Level = Incremental
- Schedule = "WeeklyCycle"
- Messages = Standard
- Priority = 10
- Write Bootstrap = "/mnt/Vol01/bootstrap/%c.bsr"
- Spool Attributes = yes
- }
- #
- # 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 = archeo
- FileSet = "archeo FileSet"
- Storage = "archeo Storage"
- Pool = "Default"
- Messages = Standard
- Where = /mnt/Vol01/restore
- }
- FileSet {
- Name = "Windows All Drives"
- Enable VSS = yes
- Include {
- Options {
- Signature = MD5
- Drive Type = fixed
- IgnoreCase = yes
- WildFile = "[A-Z]:/pagefile.sys"
- WildDir = "[A-Z]:/RECYCLER"
- WildDir = "[A-Z]:/$RECYCLE.BIN"
- WildDir = "[A-Z]:/System Volume Information"
- Exclude = yes
- }
- File = /
- }
- }
- #
- # 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 fri at 23:05
- Run = Differential 2nd-5th fri at 23:05
- Run = Incremental sat-thu at 23:05
- }
- # This schedule does the catalog. It starts after the WeeklyCycle
- Schedule {
- Name = "WeeklyCycleAfterBackup"
- Run = Full sun-sat at 23:10
- }
- # Generic catalog service
- Catalog {
- Name = MyCatalog
- # Uncomment the following lines if you want the dbi driver
- # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
- #dbdriver = "postgresql"
- dbdriver = "postgresql"
- dbname = "bareos"
- dbuser = "bareos"
- dbpassword = ""
- }
- # 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.
- # What this does is, it sets the email address that emails would display
- # in the FROM field, which is by default the same email as they're being
- # sent to. However, if you send email to more than one address, then
- # you'll have to set the FROM address manually, to a single address.
- # for example, a 'no-reply@mydomain.com', is better since that tends to
- # tell (most) people that its coming from an automated source.
- #
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
- operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
- mail = root@localhost = all, !skipped
- operator = root@localhost = 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/log/bareos/bareos.log" = all, !skipped
- catalog = all
- }
- #
- # Message delivery for daemon messages (no job).
- Messages {
- Name = Daemon
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r"
- mail = root@localhost = all, !skipped
- console = all, !skipped, !saved
- append = "/var/log/bareos/bareos.log" = all, !skipped
- }
- # Default pool definition
- Pool {
- Name = Default
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Action On Purge = Truncate
- Recycle Oldest Volume = yes
- Label Format = "Defa"
- Volume Retention = 365 days
- Maximum Volume Jobs = 1
- }
- # Scratch pool definition
- Pool {
- Name = Scratch
- Pool Type = Backup
- }
- #
- # Restricted console used by tray-monitor to get the status of the director
- #
- Console {
- Name = archeo-mon
- Password = "XJBmweE0ldnDl+XoS6rSOPGJk4F/hTtEiFZuWQwjIbCV"
- CommandACL = status, .status
- }
- Console {
- Name = mgolab-mon
- Password = "/ttERj114GLsuW5huBJjADB4P+uGecvmEfXnwun8pePV"
- CommandACL = status, .status
- }
- Pool {
- Name = "Full"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Action On Purge = Truncate
- Recycle Oldest Volume = yes
- Label Format = "Full"
- Volume Retention = 3 months
- Maximum Volume Jobs = 1
- }
- Pool {
- Name = "Diff"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Action On Purge = Truncate
- Recycle Oldest Volume = yes
- Label Format = "Diff"
- Volume Retention = 30 days
- Maximum Volume Jobs = 1
- }
- Pool {
- Name = "Incr"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Action On Purge = Truncate
- Recycle Oldest Volume = yes
- Label Format = "Incr"
- Volume Retention = 15 days
- Maximum Volume Jobs = 1
- }
- # Include subfiles associated with configuration of clients.
- # They define the bulk of the Clients, Jobs, and FileSets.
- # Remember to "reload" the Director after adding a client file.
- #
- #@|"sh -c ’for f in /etc/bareos/clients/*.conf ; do echo @${f} ; done’"
- @/etc/bareos/clients/archeo.conf
- @/etc/bareos/clients/asterix.conf
- @/etc/bareos/clients/baseline.conf
- @/etc/bareos/clients/batory.conf
- #@/etc/bareos/clients/erp1.conf
- @/etc/bareos/clients/mocny.conf
- @/etc/bareos/clients/mssql01.conf
- @/etc/bareos/clients/sobieski.conf
- #@/etc/bareos/clients/synchrotron.conf
- @/etc/bareos/clients/waza1.conf
- @/etc/bareos/clients/wiki.conf
- @/etc/bareos/clients/zygmunt.conf
- @/etc/bareos/clients/ora11.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement