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.3 (04 August 2010) -- debian 5.0.8
- #
- # 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 = "proxmox-lespointus-dir"
- DIRport = 9101 # where we listen for UA connections
- QueryFile = "/etc/bacula/scripts/query.sql"
- WorkingDirectory = "/var/bacula/working"
- PidDirectory = "/var/run"
- Maximum Concurrent Jobs = 1
- Password = "IOSNRXXGY2+QodmezHyIW5aFDsqXf7vazqMvdzYO0hc1" # Console password
- Messages = "Daemon"
- }
- JobDefs {
- Name = "DefaultJob"
- Type = Backup
- Client = "vm-lespointus-fd"
- FileSet = "FileCristal2Backup"
- Schedule = "MonthlyCycle"
- Storage = "UsbStorageForCristal2"
- Messages = "Standard"
- Pool = "Full-Pool"
- Full Backup Pool = "Full-Pool"
- Incremental Backup Pool = "Inc-Pool"
- Priority = 10
- }
- #
- # Define the main nightly save backup job
- # By default, this job will back up to disk in /mnt/backup/bacula
- Job {
- Name = "BackupCristal2"
- JobDefs = "DefaultJob"
- Write Bootstrap = "/mnt/backup/bacula/irris/cristal2.bsr"
- }
- Job {
- Name = "BackupFileSystemDebian"
- Client = "proxmox-lespointus-fd"
- JobDefs = "DefaultJob"
- FileSet = "FileDebian2Backup"
- Storage = "UsbStorageForDebian"
- Write Bootstrap = "/mnt/backup/bacula/linux/debian.bsr"
- }
- # Backup the catalog database (after the nightly save)
- Job {
- Name = "BackupCatalog"
- JobDefs = "DefaultJob"
- Level = Full
- FileSet="Catalog"
- Storage = "UsbStorageForCatalog"
- Schedule = "MonthlyBackupCatalog"
- # This creates an ASCII copy of the catalog
- # Arguments to make_catalog_backup.pl are:
- # make_catalog_backup.pl <catalog-name>
- RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
- # This deletes the copy of the catalog
- RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
- Write Bootstrap = "/mnt/backup/bacula/catalog/catalog.bsr"
- Priority = 11 # run after main backup
- }
- #
- # Standard Restore template, to be changed by Console program
- # Only one such job is needed for all Jobs/Clients/Storage ...
- #
- Job {
- Name = "RestoreFilesCristal2"
- Type = Restore
- Client = "vm-lespointus-fd"
- FileSet= "FileCristal2Backup"
- Storage = "UsbStorageForCristal2"
- Pool = "Full-Pool"
- Messages = "Standard"
- Where = "/mnt/backup/bacula/irris/cristal2-restores"
- }
- Job {
- Name = "RestoreFilesDebian"
- Type = Restore
- Client = "proxmox-lespointus-fd"
- FileSet = "FileDebian2Backup"
- Storage = "UsbStorageForDebian"
- Pool = "Full-Pool"
- Messages = "Standard"
- Where = "/mnt/backup/bacula/linux/debian-restores"
- }
- # List of files to be backed up
- FileSet {
- Name = "FileCristal2Backup"
- Enable VSS = "yes"
- Include {
- Options {
- signature = "MD5"
- #compression = "GZIP"
- IgnoreCase = "yes"
- }
- File = "C:/cristal2"
- }
- }
- FileSet {
- Name = "FileDebian2Backup"
- Include {
- Options {
- signature = "MD5"
- compression = "GZIP"
- }
- File = "/etc"
- File = "/var/www/webacula"
- }
- }
- Schedule {
- Name = "MonthlyCycle"
- Run = Level=Full Pool=Full-Pool on 1 at 1:05
- Run = Level=Incremental Pool=Inc-Pool on 2-31 at 1:05
- }
- # This schedule does the catalog. It starts after the MonthlyCycle
- Schedule {
- Name = "MonthlyBackupCatalog"
- Run = Level=Full Pool=Full-Catalog on 1-31 at 2:05
- }
- # This is the backup of the catalog
- FileSet {
- Name = "Catalog"
- Include {
- Options {
- signature = "MD5"
- compression = "GZIP"
- }
- File = "/var/bacula/working/bacula.sql"
- }
- }
- # Client (File Services) to backup
- Client {
- Name = "vm-lespointus-fd"
- Address = 192.168.1.200
- FDPort = 9102
- Catalog = "MyCatalog"
- # Password = "wgEu30Py5eclcoG25rrK+YtOj8O18yaKT+Yiwdx4DO++" # password for FileDaemon
- Password = "WnCVInCo+c6ICffR8rU5EUeyPVNZ53GXwUqpM757Mn6l" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = "yes" # Prune expired Jobs/Files
- }
- # Client (File Services) to backup
- Client {
- Name = "proxmox-lespointus-fd"
- Address = 192.168.1.199
- FDPort = 9102
- Catalog = "MyCatalog"
- Password = "wgEu30Py5eclcoG25rrK+YtOj8O18yaKT+Yiwdx4DO++" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = "yes" # Prune expired Jobs/Files
- }
- # Definition of file storage device
- Storage {
- Name = "UsbStorageForCristal2"
- # Do not use "localhost" here
- Address = 192.168.1.199 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "dUuBWI5LujmgBq3QTV2qdC2+v/m8BAqkeZaCp1ioCVLH"
- Device = "UsbStorageIrris"
- Media Type = File
- }
- Storage {
- Name = "UsbStorageForDebian"
- # Do not use "localhost" here
- Address = 192.168.1.199 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "dUuBWI5LujmgBq3QTV2qdC2+v/m8BAqkeZaCp1ioCVLH"
- Device = "UsbStorageLinux"
- Media Type = File
- }
- Storage {
- Name = "UsbStorageForCatalog"
- # Do not use "localhost" here
- Address = 192.168.1.199 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "dUuBWI5LujmgBq3QTV2qdC2+v/m8BAqkeZaCp1ioCVLH"
- Device = "UsbStorageCatalog"
- Media Type = File
- }
- # Generic catalog service
- Catalog {
- Name = "MyCatalog"
- # Uncomment the following line if you want the dbi driver
- # dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =
- dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
- }
- # 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 '[email protected]', is better since that tends to
- # tell (most) people that its coming from an automated source.
- #
- mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
- mail = [email protected] = all, !skipped
- operator = [email protected] = 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/bacula/working/log" = all, !skipped
- catalog = all
- }
- #
- # Message delivery for daemon messages (no job).
- Messages {
- Name = "Daemon"
- mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = [email protected] = all, !skipped
- console = all, !skipped, !saved
- append = "/var/bacula/working/log" = all, !skipped
- }
- # Default pool definition
- Pool {
- Name = "Default"
- Pool Type = Backup
- Recycle = "yes" # Bacula can automatically recycle Volumes
- AutoPrune = "yes" # Prune expired volumes
- #Volume Retention = 365 days # one year
- }
- # Full pool definition
- Pool {
- Name = "Full-Pool"
- Pool Type = "Backup"
- Recycle = "yes" # Bacula can automatically recycle Volumes
- AutoPrune = "yes" # Prune expired volumes
- Recycle Oldest Volume = "yes"
- Volume Retention = 365 days # one year
- Label Format = "Full-"
- #Label Format = "Full-${Day:p/2/0/r}${Month:p/2/0/r}${Year}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m${Second:p/2/0/r}s"
- Maximum Volume Jobs = 1
- Maximum Volumes = 12
- }
- # Incremental Pool definition client
- Pool {
- Name = "Inc-Pool"
- Pool Type = "Backup"
- Recycle = "yes" # Bacula can automatically recycle Volumes
- AutoPrune = "yes" # Prune expired volumes
- Volume Retention = 30 days # 30 days
- Recycle Oldest Volume = "yes"
- Label Format = "Inc-"
- #Label Format = "Inc-${Day:p/2/0/r}${Month:p/2/0/r}${Year}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m${Second:p/2/0/r}s"
- #Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
- Maximum Volumes = 5 # Limit number of Volumes in Pool
- Maximum Volume Jobs = 7
- }
- # Full pool definition catalog
- Pool {
- Name = "Full-Catalog"
- Pool Type = "Backup"
- Recycle = "yes"
- AutoPrune = "yes"
- Volume Retention = 31 days
- Recycle Oldest Volume = "yes"
- Label Format = "Full-Catalog-"
- #Label Format = "Catalog-${Day:p/2/0/r}${Month:p/2/0/r}${Year}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m${Second:p/2/0/r}s"
- Maximum Volumes = 5
- Maximum Volume Jobs = 8
- }
- # Scratch pool definition
- Pool {
- Name = "Scratch"
- Pool Type = Backup
- }
- #
- # Restricted console used by tray-monitor to get the status of the director
- #
- Console {
- Name = proxmox-lespointus-mon
- Password = "wnaXVTDs0GtrsJVor5xknfbzUiJnlv4bNtSRd2Uajk4s"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement