Browse Source

bareos-dir: split up config

Maximilian Ronniger 7 years ago
parent
commit
21c1e954b9

+ 15 - 230
bareos-dir.conf

@@ -1,231 +1,16 @@
 #
-# Default Bareos Director configuration file for disk-only backup
-#
-#  For Bareos release 15.2.2 (16 November 2015) -- ubuntu Ubuntu 14.04 LTS
-#
-# Each configuration item has a reference number that shows
-# where this property can be changed in the configuration file.
-# Search for the number to find the correct line.
-#
-# You have to configure the following accoring to your environment:
-#
-# (#01)Email Address for bareos disaster recovery.
-#      Specify a mailaddress outside of your backupserver.
-#      There will be one mail per day.
-#
-# (#02)Email Address for bareos reports. (Mail Command)
-#      This mail address will recieve a report about each backup job.
-#      It will be sent after the backupjob is complete.
-#      Has to be configured twice ("Standard" and "Daemon" Message Ressources)
-#
-# (#03)Email Address for bareos operator. (Operator Command)
-#      This mail address will recieve a mail immediately when the
-#      bareos system needs an operator intervention.
-#      May be the same address as in (#02)
-#
-#
-# This disk-only setup stores all data into /var/lib/bareos/storage
-#
-# The preconfigured backup scheme is as follows:
-#
-#   Full Backups are done on first Saturday at 21:00              (#04)
-#   Full Backups are written into the "Full" Pool                 (#05)
-#   Full Backups are kept for 365 Days                            (#06)
-#
-#   Differential Backups are done on 2nd to 5th Saturday at 21:00 (#07)
-#   Differential Backups are written into the "Differential" Pool (#08)
-#   Differential Backups are kept for 90 Days                     (#09)
-#
-#   Incremental Backups are done monday to friday at 21:00        (#10)
-#   Incremental Backups are written into the "Incremental" Pool   (#11)
-#   Incremental Backups are kept for 30 Days                      (#12)
-#
-#   What you also have to do is to change the default fileset     (#13)
-#   to either one of the demo filesets given or create our own fileset.
-#
-#
-#
-#  For Bareos release 15.2.2 (16 November 2015) -- ubuntu Ubuntu 14.04 LTS
-#
-#
-Director {                            # define myself
-  Name = lto7-dir
-  QueryFile = "/usr/lib/bareos/scripts/query.sql"
-  Maximum Concurrent Jobs = 10
-  Password = "fsiH4bZpifKAyInabNcqmHwV2Z8++kAOzQYCtdr0ipdO"         # Console password
-  Messages = Daemon
-  Auditing = yes
-
-  # Enable the Heartbeat if you experience connection losses
-  # (eg. because of your router or firewall configuration).
-  # Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd.
-  #
-  # Heartbeat Interval = 1m
-
-  # remove comment in next line to load dynamic backends from specified directory
-  # Backend Directory = /usr/lib/bareos/backends
-
-  # remove comment from "Plugin Directory" to load plugins from specified directory.
-  # if "Plugin Names" is defined, only the specified plugins will be loaded,
-  # otherwise all director plugins (*-dir.so) from the "Plugin Directory".
-  #
-  # Plugin Directory = /usr/lib/bareos/plugins
-  # Plugin Names = ""
-}
-
-@/etc/bareos/bareos-dir.d/jobs.conf
-
-@/etc/bareos/bareos-dir.d/fileset.conf
-
-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
-}
-
-# Client (File Services) to backup
-Client {
-  Name = lto7-fd
-  Address = lto7
-  Password = "4cpnIZAfirCJcF05x0y0iYo4NXz4WsnHoYojuUxs75/6"          # password for FileDaemon
-}
-
-Client {
-  Name = archivo-fd
-  Address = 10.0.21.2
-  Password = "mP1AxBHUT+9ow2k1mnWHRNvzWTeuBiGOY9xKX+0zwCUb"          # password for FileDaemon
-}
-
-Client {
-  Name = barebone-fd
-  Address = 10.0.21.1
-  Password = "Iexaeng9eev7ainil0jooCei6oz9eek7eoc2tiithooj"          # password for FileDaemon
-}
-#
-# Definition of file storage device
-#
-Storage {
-  Name = File
-# Do not use "localhost" here
-  Address = lto7                # N.B. Use a fully qualified name here
-  Password = "Ia+A/4PGvr4kFgI9CYOZX73qqRXqUi8llZNymggM3k18"
-  Device = FileStorage
-  Media Type = File
-}
-
-@/etc/bareos/bareos-dir.d/tape.conf
-
-#
-# 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"
-  dbaddress = 127.0.0.1
-  dbdriver = postgresql
-  dbname = bareos
-  dbuser = bareos
-  dbpassword = 0gxmuamUuL5T
-}
-
-#
-# 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
-}
-
-#
-# Full Pool definition
-#
-Pool {
-  Name = Full
-  Pool Type = Backup
-  Recycle = yes                       # Bareos can automatically recycle Volumes
-  AutoPrune = yes                     # Prune expired volumes
-  Volume Retention = 3650 days        # How long should the Full Backups be kept? (#06)
-  Maximum Volume Bytes = 6144G        # Limit Volume size to something reasonable
-  Maximum Volumes = 100               # Limit number of Volumes in Pool
-  Label Format = "Full-"              # Volumes will be labeled "Full-<volume-id>"
-}
-
-#
-# Differential Pool definition
-#
-Pool {
-  Name = Differential
-  Pool Type = Backup
-  Recycle = yes                       # Bareos can automatically recycle Volumes
-  AutoPrune = yes                     # Prune expired volumes
-  Volume Retention = 365 days          # How long should the Differential Backups be kept? (#09)
-  Maximum Volume Bytes = 6144G        # Limit Volume size to something reasonable
-  Maximum Volumes = 100               # Limit number of Volumes in Pool
-  Label Format = "Differential-"      # Volumes will be labeled "Differential-<volume-id>"
-}
-
-#
-# Incremental Pool definition
-#
-Pool {
-  Name = Incremental
-  Pool Type = Backup
-  Recycle = yes                       # Bareos can automatically recycle Volumes
-  AutoPrune = yes                     # Prune expired volumes
-  Volume Retention = 90 days          # How long should the Incremental Backups be kept?  (#12)
-  Maximum Volume Bytes = 6144G        # Limit Volume size to something reasonable
-  Maximum Volumes = 100               # Limit number of Volumes in Pool
-  Label Format = "Incremental-"       # Volumes will be labeled "Incremental-<volume-id>"
-}
-
-#
-# Scratch pool definition
-#
-Pool {
-  Name = Scratch
-  Pool Type = Backup
-}
-
-#
-# Restricted console used by tray-monitor to get the status of the director
-#
-Console {
-  Name = lto7-mon
-  Password = "CLHbqd3OZ/dLWmh1BHJaGgSHtCpcXigknhQtudZLnuGu"
-  CommandACL = status, .status
-  JobACL = *all*
-}
-
-# needed for bareus-web
-@/etc/bareos/bareos-dir.d/profile/webui-admin.conf
-
-@/etc/bareos/bareos-dir.d/console/admin.conf
-
-
+# Bareos Director configuration file for tape backup
+#
+#
+@/etc/bareos/bareos-dir.d/catalog/*.conf
+@/etc/bareos/bareos-dir.d/client/*.conf
+@/etc/bareos/bareos-dir.d/console/*.conf
+@/etc/bareos/bareos-dir.d/director/*.conf
+@/etc/bareos/bareos-dir.d/fileset/*.conf
+@/etc/bareos/bareos-dir.d/job/*.conf
+@/etc/bareos/bareos-dir.d/jobdefs/*.conf
+@/etc/bareos/bareos-dir.d/messages/*.conf
+@/etc/bareos/bareos-dir.d/pool/*.conf
+@/etc/bareos/bareos-dir.d/profile/*.conf
+@/etc/bareos/bareos-dir.d/schedule/*.conf
+@/etc/bareos/bareos-dir.d/storage/*.conf

+ 7 - 0
bareos-dir.d/catalog/postgres_bareos.conf

@@ -0,0 +1,7 @@
+Catalog {
+  Name = postgres_bareos
+  dbdriver = "postgresql"
+  dbname = "bareos"
+  dbuser = "bareos"
+  dbpassword = 0gxmuamUuL5T
+}

+ 5 - 0
bareos-dir.d/client/archivo-fd.conf

@@ -0,0 +1,5 @@
+Client {
+  Name = archivo-fd
+  Address = 10.0.21.2
+  Password = "mP1AxBHUT+9ow2k1mnWHRNvzWTeuBiGOY9xKX+0zwCUb"          # password for FileDaemon
+}

+ 5 - 0
bareos-dir.d/client/barebone-fd.conf

@@ -0,0 +1,5 @@
+Client {
+  Name = barebone-fd
+  Address = 10.0.21.1
+  Password = "Iexaeng9eev7ainil0jooCei6oz9eek7eoc2tiithooj"          # password for FileDaemon
+}

+ 7 - 0
bareos-dir.d/client/bareos-fd.conf

@@ -0,0 +1,7 @@
+Client {
+  Name = bareos-fd
+  Address = lto7
+#  Address = localhost
+  Description = "Client resource of the Director itself."
+  Password = "4cpnIZAfirCJcF05x0y0iYo4NXz4WsnHoYojuUxs75/6"          # password for FileDaemon
+}

+ 7 - 0
bareos-dir.d/console/bareos-mon.conf

@@ -0,0 +1,7 @@
+Console {
+  Name = bareos-mon
+  Description = "Restricted console used by tray-monitor to get the status of the director."
+  Password = "0YtrHP/Zd358Tly7IDnh2mAK91/UcQNLaSr8PNCxzJ1P"
+  CommandACL = status, .status
+  JobACL = *all*
+}

+ 24 - 0
bareos-dir.d/director/bareos-dir.conf

@@ -0,0 +1,24 @@
+Director {                            # define myself
+  Name = lto7-dir
+  QueryFile = "/usr/lib/bareos/scripts/query.sql"
+  Maximum Concurrent Jobs = 10
+  Password = "fsiH4bZpifKAyInabNcqmHwV2Z8++kAOzQYCtdr0ipdO"         # Console password
+  Messages = Daemon
+  Auditing = yes
+
+  # Enable the Heartbeat if you experience connection losses
+  # (eg. because of your router or firewall configuration).
+  # Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd.
+  #
+  # Heartbeat Interval = 1m
+
+  # remove comment in next line to load dynamic backends from specified directory
+  # Backend Directory = /usr/lib/bareos/backends
+
+  # remove comment from "Plugin Directory" to load plugins from specified directory.
+  # if "Plugin Names" is defined, only the specified plugins will be loaded,
+  # otherwise all director plugins (*-dir.so) from the "Plugin Directory".
+  #
+  # Plugin Directory = /usr/lib/bareos/plugins
+  # Plugin Names = ""
+}

+ 2 - 91
bareos-dir.d/fileset.conf → bareos-dir.d/fileset/Archivo.conf

@@ -1,6 +1,7 @@
 # List of files to be backed up
 FileSet {
-  Name = "archivo all dirs"
+  Name = "Archivo_All"
+  Description = "Backup all archivo Directories (a)"
   Include {
     Options {
       signature = MD5
@@ -30,8 +31,6 @@ FileSet {
   }
 }
 
-
-
 # List of files to be backed up
 FileSet {
   Name = "archivo hdd01"
@@ -473,91 +472,3 @@ FileSet {
   }
 }
 
-# Pubshare
-FileSet {
-  Name = "barebone dpr12"
-  Include {
-    Options {
-      signature = MD5
-      One FS = Yes
-    }
-    File = /home/dp/products
-  }
-}
-# # # # # # # # # # # # # # # # #
-# Predefined standart Filesets
-# # # # # # # # # # # # # # # # #
-#
-
-# 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
-  }
-}
-
-# List of files to be backed up
-FileSet {
-  Name = "archivo test"
-  Include {
-    Options {
-      signature = MD5
-      One FS = No     # change into other filessytems
-    }
-    File = /home/dp/hdd17/lto_backup_test/
-  }
-
-  Exclude {
-    File = /_md5_check
-    File = /_full_list.csv
-  }
-}
-
-
-FileSet {
-  Name = "Linux All"
-  Include {
-    Options {
-      Signature = MD5 # calculate md5 checksum per file
-      One FS = No     # change into other filessytems
-      FS Type = ext2  # filesystems of given types will be backed up
-      FS Type = ext3  # others will be ignored
-      FS Type = ext4
-      FS Type = xfs
-      FS Type = zfs
-      FS Type = reiserfs
-      FS Type = jfs
-      FS Type = btrfs
-    }
-    File = /
-  }
-  # Things that usually have to be excluded
-  # You have to exclude /var/lib/bareos/storage
-  # on your bareos server
-  Exclude {
-    File = /var/lib/bareos
-    File = /var/lib/bareos/storage
-    File = /proc
-    File = /tmp
-    File = /.journal
-    File = /.fsck
-  }
-
-}
-
-# fileset just to backup some files for selftest
-FileSet {
-  Name = "SelfTest"
-  Include {
-    Options {
-      Signature = MD5 # calculate md5 checksum per file
-    }
-    File = "/usr/sbin"
-  }
-}
-

+ 11 - 0
bareos-dir.d/fileset/Catalog.conf

@@ -0,0 +1,11 @@
+FileSet {
+  Name = "Catalog"
+  Description = "Backup the catalog dump and Bareos configuration files."
+  Include {
+    Options {
+      signature = MD5
+    }
+    File = "/var/lib/bareos/bareos.sql" # database dump
+    File = "/etc/bareos"                   # configuration
+  }
+}

+ 31 - 0
bareos-dir.d/fileset/LinuxAll.conf

@@ -0,0 +1,31 @@
+FileSet {
+  Name = "LinuxAll"
+  Description = "Backup all regular filesystems, determined by filesystem type."
+  Include {
+    Options {
+      Signature = MD5 # calculate md5 checksum per file
+      One FS = No     # change into other filessytems
+      FS Type = btrfs
+      FS Type = ext2  # filesystems of given types will be backed up
+      FS Type = ext3  # others will be ignored
+      FS Type = ext4
+      FS Type = reiserfs
+      FS Type = jfs
+      FS Type = xfs
+      FS Type = zfs
+    }
+    File = /
+  }
+  # Things that usually have to be excluded
+  # You have to exclude /var/lib/bareos/storage
+  # on your bareos server
+  Exclude {
+    File = /var/lib/bareos
+    File = /var/lib/bareos/storage
+    File = /proc
+    File = /tmp
+    File = /var/tmp
+    File = /.journal
+    File = /.fsck
+  }
+}

+ 10 - 0
bareos-dir.d/fileset/SelfTest.conf

@@ -0,0 +1,10 @@
+FileSet {
+  Name = "SelfTest"
+  Description = "fileset just to backup some files for selftest"
+  Include {
+    Options {
+      Signature = MD5 # calculate md5 checksum per file
+    }
+    File = "/usr/sbin"
+  }
+}

+ 17 - 0
bareos-dir.d/fileset/Windows All Drives.conf

@@ -0,0 +1,17 @@
+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 = /
+  }
+}

+ 12 - 0
bareos-dir.d/fileset/dpr12.conf

@@ -0,0 +1,12 @@
+# Pubshare
+FileSet {
+  Name = "dpr12"
+    Description = "Backup barebone dpr12."
+  Include {
+    Options {
+      signature = MD5
+      One FS = Yes
+    }
+    File = /home/dp/products
+  }
+}

+ 21 - 0
bareos-dir.d/job/BackupCatalog.conf

@@ -0,0 +1,21 @@
+Job {
+  Name = "BackupCatalog"
+  Description = "Backup the catalog database (after the nightly save)"
+  JobDefs = "DefaultJob"
+  Level = Full
+  FileSet="Catalog"
+  #Schedule = "WeeklyCycleAfterBackup"
+
+  # This creates an ASCII copy of the catalog
+  # Arguments to make_catalog_backup.pl are:
+  #  make_catalog_backup.pl <catalog-name>
+  RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
+
+  # This deletes the copy of the catalog
+  RunAfterJob  = "/usr/lib/bareos/scripts/delete_catalog_backup"
+
+  # This sends the bootstrap via mail for disaster recovery.
+  # Should be sent to another system, please change recipient accordingly
+  Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01)
+  Priority = 11                   # run after main backup
+}

+ 1 - 85
bareos-dir.d/jobs.conf → bareos-dir.d/job/IncrementalBackupArchivo.conf

@@ -1,38 +1,3 @@
-JobDefs {
-  Name = "DefaultJob"
-  Type = Backup
-  Level = Incremental
-  Client = lto7-fd
-  FileSet = "SelfTest"                     # selftest fileset                            (#13)
-  #Schedule = "WeeklyCycle"
-  Storage = File
-  Messages = Standard
-  Pool = Incremental
-  Priority = 10
-  Write Bootstrap = "/var/lib/bareos/%c.bsr"
-  Full Backup Pool = Full                  # write Full Backups into "Full" Pool         (#05)
-  Differential Backup Pool = Differential  # write Diff Backups into "Differential" Pool (#08)
-  Incremental Backup Pool = Incremental    # write Incr Backups into "Incremental" Pool  (#11)
-}
-
-# 
-JobDefs {
-  Name = "weekly incremental"
-  Type = Backup
-  Level = Incremental
-  Client = archivo-fd
-  FileSet = "archivo hdd01"                     # selftest fileset                            (#13)
-  #Schedule = "WeeklyCycle"
-  Storage = "LTO7"
-  Messages = Standard
-  Pool = Incremental
-  Priority = 10
-  Write Bootstrap = "/var/lib/bareos/%c.bsr"
-  Full Backup Pool = Full                  # write Full Backups into "Full" Pool         (#05)
-  Differential Backup Pool = Differential  # write Diff Backups into "Differential" Pool (#08)
-  Incremental Backup Pool = Incremental    # write Incr Backups into "Incremental" Pool  (#11)
-}
-
 # incremental Jobs
 Job {
   JobDefs = "weekly incremental"
@@ -233,53 +198,4 @@ Job {
   JobDefs = "weekly incremental"
   Name = "incremental hdd40"
   FileSet="archivo hdd40"
-}
-
-#
-# Define the main manual full backup job
-Job {
-  Name = "Backup_archivo_to_LTO7"
-  JobDefs = "DefaultJob"
-  Client = archivo-fd
-  Storage="LTO7"
-  FileSet="archivo hdd01"
-}
-
-#
-# Backup the catalog database (after the nightly save)
-#
-Job {
-  Name = "BackupCatalog"
-  JobDefs = "DefaultJob"
-  Level = Full
-  FileSet="Catalog"
-  #Schedule = "WeeklyCycleAfterBackup"
-
-  # This creates an ASCII copy of the catalog
-  # Arguments to make_catalog_backup.pl are:
-  #  make_catalog_backup.pl <catalog-name>
-  RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
-
-  # This deletes the copy of the catalog
-  RunAfterJob  = "/usr/lib/bareos/scripts/delete_catalog_backup"
-
-  # This sends the bootstrap via mail for disaster recovery.
-  # Should be sent to another system, please change recipient accordingly
-  Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01)
-  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 = "RestoreFiles"
-  Type = Restore
-  Client=lto7-fd
-  FileSet = "Linux All"
-  Storage = File
-  Pool = Incremental
-  Messages = Standard
-  Where = /storage/restore
-}
+}

+ 9 - 0
bareos-dir.d/job/ManualBackupArchivo.conf

@@ -0,0 +1,9 @@
+#
+# Define the main manual full backup job
+Job {
+  Name = "Backup_archivo_to_LTO7"
+  JobDefs = "DefaultJob"
+  Client = archivo-fd
+  Storage="LTO7"
+  FileSet="archivo hdd01"
+}

+ 11 - 0
bareos-dir.d/job/RestoreFiles.conf

@@ -0,0 +1,11 @@
+Job {
+  Name = "RestoreFiles"
+  Description = "Standard Restore template. Only one such job is needed for all standard Jobs/Clients/Storage ..."
+  Type = Restore
+  Client = bareos-fd
+  FileSet = "LinuxAll"
+  Storage = File
+  Pool = Incremental
+  Messages = Standard
+  Where = /storage/restore
+}

+ 5 - 0
bareos-dir.d/job/backup-bareos-fd.conf

@@ -0,0 +1,5 @@
+Job {
+  Name = "backup-bareos-fd"
+  JobDefs = "DefaultJob"
+  Client = "bareos-fd"
+}

+ 16 - 0
bareos-dir.d/jobdefs/DefaultJob.conf

@@ -0,0 +1,16 @@
+JobDefs {
+  Name = "DefaultJob"
+  Type = Backup
+  Level = Incremental
+  Client = bareos-fd
+  FileSet = "SelfTest"                     # selftest fileset                            (#13)
+  #Schedule = "WeeklyCycle"
+  Storage = File
+  Messages = Standard
+  Pool = Incremental
+  Priority = 10
+  Write Bootstrap = "/var/lib/bareos/%c.bsr"
+  Full Backup Pool = Full                  # write Full Backups into "Full" Pool         (#05)
+  Differential Backup Pool = Differential  # write Diff Backups into "Differential" Pool (#08)
+  Incremental Backup Pool = Incremental    # write Incr Backups into "Incremental" Pool  (#11)
+}

+ 16 - 0
bareos-dir.d/jobdefs/weekly_incremental.conf

@@ -0,0 +1,16 @@
+JobDefs {
+  Name = "weekly incremental"
+  Type = Backup
+  Level = Incremental
+  Client = archivo-fd
+  FileSet = "archivo hdd01"                     # selftest fileset                            (#13)
+  #Schedule = "WeeklyCycle"
+  Storage = "LTO7"
+  Messages = Standard
+  Pool = Incremental
+  Priority = 10
+  Write Bootstrap = "/var/lib/bareos/%c.bsr"
+  Full Backup Pool = Full                  # write Full Backups into "Full" Pool         (#05)
+  Differential Backup Pool = Differential  # write Diff Backups into "Differential" Pool (#08)
+  Incremental Backup Pool = Incremental    # write Incr Backups into "Incremental" Pool  (#11)
+}

+ 9 - 0
bareos-dir.d/messages/Daemon.conf

@@ -0,0 +1,9 @@
+Messages {
+  Name = Daemon
+  Description = "Message delivery for daemon messages (no job)."
+  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
+}

+ 11 - 0
bareos-dir.d/messages/Standard.conf

@@ -0,0 +1,11 @@
+Messages {
+  Name = Standard
+  Description = "Reasonable message delivery -- send most everything to email address and to the console."
+  operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
+  mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
+  operator = root@localhost = mount                                 # (#03)
+  mail = root@localhost = all, !skipped, !saved, !audit             # (#02)
+  console = all, !skipped, !saved, !audit
+  append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
+  catalog = all, !skipped, !saved, !audit
+}

+ 10 - 0
bareos-dir.d/pool/Differential.conf

@@ -0,0 +1,10 @@
+Pool {
+  Name = Differential
+  Pool Type = Backup
+  Recycle = yes                       # Bareos can automatically recycle Volumes
+  AutoPrune = yes                     # Prune expired volumes
+  Volume Retention = 365 days          # How long should the Differential Backups be kept? (#09)
+  Maximum Volume Bytes = 6144G          # Limit Volume size to something reasonable
+  Maximum Volumes = 100               # Limit number of Volumes in Pool
+  Label Format = "Differential-"      # Volumes will be labeled "Differential-<volume-id>"
+}

+ 10 - 0
bareos-dir.d/pool/Full.conf

@@ -0,0 +1,10 @@
+Pool {
+  Name = Full
+  Pool Type = Backup
+  Recycle = yes                       # Bareos can automatically recycle Volumes
+  AutoPrune = yes                     # Prune expired volumes
+  Volume Retention = 3650 days         # How long should the Full Backups be kept? (#06)
+  Maximum Volume Bytes = 6144G          # Limit Volume size to something reasonable
+  Maximum Volumes = 100               # Limit number of Volumes in Pool
+  Label Format = "Full-"              # Volumes will be labeled "Full-<volume-id>"
+}

+ 10 - 0
bareos-dir.d/pool/Incremental.conf

@@ -0,0 +1,10 @@
+Pool {
+  Name = Incremental
+  Pool Type = Backup
+  Recycle = yes                       # Bareos can automatically recycle Volumes
+  AutoPrune = yes                     # Prune expired volumes
+  Volume Retention = 90 days          # How long should the Incremental Backups be kept?  (#12)
+  Maximum Volume Bytes = 6144G           # Limit Volume size to something reasonable
+  Maximum Volumes = 100               # Limit number of Volumes in Pool
+  Label Format = "Incremental-"       # Volumes will be labeled "Incremental-<volume-id>"
+}

+ 4 - 0
bareos-dir.d/pool/Scratch.conf

@@ -0,0 +1,4 @@
+Pool {
+  Name = Scratch
+  Pool Type = Scratch
+}

+ 19 - 0
bareos-dir.d/profile/operator.conf

@@ -0,0 +1,19 @@
+Profile {
+   Name = operator
+   Description = "Profile allowing normal Bareos operations."
+
+   Command ACL = !.bvfs_clear_cache, !.exit, !.sql
+   Command ACL = !configure, !create, !delete, !purge, !prune, !sqlquery, !umount, !unmount
+   Command ACL = *all*
+
+   Catalog ACL = *all*
+   Client ACL = *all*
+   FileSet ACL = *all*
+   Job ACL = *all*
+   Plugin Options ACL = *all*
+   Pool ACL = *all*
+   Schedule ACL = *all*
+   Storage ACL = *all*
+   Where ACL = *all*
+}
+

+ 1 - 2
bareos-dir.d/profile/webui-admin.conf

@@ -3,8 +3,7 @@
 #
 Profile {
   Name = "webui-admin"
-  #CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, !purge, !sqlquery, !umount, !unmount, .help, help, *all*
-  CommandACL = list, llist, rerun, cancel, run, enable, disable, .bvfs_.*, .filesets, .jobs, restore, .schedule, show, status, import, export, release, update, label, .pools,  *all*
+  CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, !purge, !prune, !sqlquery, !umount, !unmount, *all*
   Job ACL = *all*
   Schedule ACL = *all*
   Catalog ACL = *all*

+ 6 - 0
bareos-dir.d/schedule/WeeklyCycle.conf

@@ -0,0 +1,6 @@
+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)
+}

+ 5 - 0
bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf

@@ -0,0 +1,5 @@
+Schedule {
+  Name = "WeeklyCycleAfterBackup"
+  Description = "This schedule does the catalog. It starts after the WeeklyCycle."
+  Run = Full mon-fri at 21:10
+}

+ 7 - 0
bareos-dir.d/storage/File.conf

@@ -0,0 +1,7 @@
+Storage {
+  Name = File
+  Address = lto7                # N.B. Use a fully qualified name here (do not use "localhost" here).
+  Password = "Ia+A/4PGvr4kFgI9CYOZX73qqRXqUi8llZNymggM3k18"
+  Device = FileStorage
+  Media Type = File
+}

+ 0 - 0
bareos-dir.d/tape.conf → bareos-dir.d/storage/Tape.conf