Director { # define myself Name = xbareos2-dir QueryFile = "/usr/lib/bareos/scripts/query.sql" Maximum Concurrent Jobs = 1 Password = "jQw01h5N/vdtGETVhQPOHvkGBFttA4cCRg3aGyAIUF0D" # Console password Messages = Daemon Auditing = yes } Catalog { Name = MyCatalog dbdriver = "mysql" dbname = "bareos" dbuser = "bareos" dbpassword = "" } Job { Name = "BackupCatalog" Type = Backup Level = Full FileSet="Catalog" Messages = Standard Schedule = "WeeklyCycleAfterBackup" Client = xbareos2-fd Pool = pCatalog RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog" RunAfterJob = "/usr/lib/bareos/scripts/delete_catalog_backup" Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01) Priority = 11 # run after main backup } Schedule { Name = "WeeklyCycle" Run = Full 1st sat at 21:00 # (#04) Run = Differential 2nd-5th sat at 21:00 # (#07) Run = Incremental mon-fri at 21:00 # (#10) } # This schedule does the catalog. It starts after the WeeklyCycle Schedule { Name = "WeeklyCycleAfterBackup" Run = Full mon-fri at 21:10 } # This is the backup of the catalog FileSet { Name = "Catalog" Include { Options { signature = MD5 } File = "/var/lib/bareos/bareos.sql" # database dump File = "/etc/bareos" # configuration } } # Client (File Services) to backup Client { Name = xbareos2-fd Address = 10.100.40.2 Password = "YiX0bvB9y+tyVdmaQ9AZMmuguhCYRzjTS02v80kCd3sf" # password for FileDaemon File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = no # Prune expired Jobs/Files } # # Reasonable message delivery -- send most everything to email address and to the console # Messages { Name = Standard mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r" operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r" mail = root@localhost = all, !skipped, !audit # (#02) operator = root@localhost = mount # (#03) console = all, !skipped, !saved, !audit append = "/var/log/bareos/bareos.log" = all, !skipped, !audit catalog = all, !audit } # # Message delivery for daemon messages (no job). # Messages { Name = Daemon mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r" mail = root@localhost = all, !skipped, !audit # (#02) console = all, !skipped, !saved, !audit append = "/var/log/bareos/bareos.log" = all, !skipped, !audit append = "/var/log/bareos/bareos-audit.log" = audit } # Pool full mensuel catalog Pool { Name = pCatalog Pool Type = Backup Storage = rbt01 Autoprune = yes Volume Retention = 400 days RecyclePool = Scratch Recycle = yes } Pool { Name = Scratch Pool Type = Backup } Console { Name = xbareos2-mon Password = "r0qOWCsnxOSc/pGrrSMHM6DvJXLgdtp3GZsuTZe0ZM33" CommandACL = status, .status JobACL = *all* } @/etc/bareos/bareos-dir.d/bareos-webui.conf Storage { Name = rbt01 Address = 10.100.40.2 SDPort = 9103 Password = "SQvRcOo2FhTMcDvAqpEqNXesFvKMHvXiOMyQP8cp4emm" Device = autochanger0 Media Type = LTO-5 Autochanger = yes } Storage { Name = rbt01-ndmp Address = 10.100.40.2 Port = 10001 Protocol = NDMPv4 # Need to specify protocol before password as protocol determines password encoding used. Auth Type = Clear # Clear == Clear Text, MD5 == Challenge protocol Username = root Password = cg49cg49 Device = autochanger0 Media Type = LTO-5 PairedStorage = rbt01 AutoChanger = yes } Client { Name = netapptf-2-ndmp Address = 10.8.0.1 Port = 10000 Protocol = NDMPv4 # Need to specify protocol before password as protocol determines password encoding used. Auth Type = MD5 # Clear == Clear Text, MD5 == Challenge protocol Username = "adminnb" # username of the NDMP user on the DATA AGENT e.g. storage box being backuped. Password = "REMOVED!!!" # password of the NDMP user on the DATA AGENT e.g. storage box being backuped. } # Pool full mensuel catalog Pool { Name = pNDMP Pool Type = Backup Storage = rbt01-ndmp Autoprune = yes Volume Retention = 400 days RecyclePool = Scratch Recycle = yes } Fileset { Name = "NDMP Fileset" Include { Options { meta = "USER=root" } File = /vol/vol_testbareosCIFS } } Fileset { Name = "NDMP Fileset SMTAPE" Include { Options { meta = "SMTAPE_DELETE_SNAPSHOT=Y" } File = /vol/vol_testbareosCIFS } } Job { Name = "BackupNDMPDump" Type = Backup Protocol = NDMP Level = Full Client = netapptf-2-ndmp Backup Format = dump FileSet = "NDMP Fileset" Schedule = "WeeklyCycle" Storage = rbt01-ndmp Messages = Standard Pool = pNDMP Priority = 10 Write Bootstrap = "/var/opt/bareos/run/bareos/%c.bsr" } Job { Name = "NDMPRestoreDump" Client = netapptf-2-ndmp Type = Restore Protocol = NDMP Backup Format = dump FileSet = "NDMP Fileset" Storage = rbt01-ndmp Pool = pNDMP Messages = Standard Where = / } Job { Name = "BackupNDMPSMtape" Type = Backup Protocol = NDMP Level = Full Client = netapptf-2-ndmp Backup Format = smtape FileSet = "NDMP Fileset SMTAPE" Schedule = "WeeklyCycle" Storage = rbt01-ndmp Messages = Standard Pool = pNDMP Priority = 10 Write Bootstrap = "/var/opt/bareos/run/bareos/%c.bsr" }