Ver Fonte

bareos-dir: move filesets to seperate file

lt07 admin há 9 anos atrás
pai
commit
ca172760a5
2 ficheiros alterados com 104 adições e 101 exclusões
  1. 1 101
      bareos-dir.conf
  2. 103 0
      bareos-dir.d/fileset.conf

+ 1 - 101
bareos-dir.conf

@@ -163,95 +163,7 @@ Job {
   Where = /storage/restore
 }
 
-# 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
-  }
-}
-
-# List of files to be backed up
-FileSet {
-  Name = "archivo all dirs"
-  Include {
-    Options {
-      signature = MD5
-      One FS = No     # change into other filessytems
-    }
-    File = /home/dp/lto_backup_all_dirs/
-  }
-}
-
-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 = /
-  }
-}
-
-
-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"
-  }
-}
+@/etc/bareos/bareos-dir.d/fileset.conf
 
 Schedule {
   Name = "WeeklyCycle"
@@ -266,18 +178,6 @@ Schedule {
   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 = lto7-fd

+ 103 - 0
bareos-dir.d/fileset.conf

@@ -0,0 +1,103 @@
+# List of files to be backed up
+FileSet {
+  Name = "archivo all dirs"
+  Include {
+    Options {
+      signature = MD5
+      One FS = No     # change into other filessytems
+    }
+    File = /home/dp/lto_backup_all_dirs/
+  }
+}
+
+
+
+# List of files to be backed up
+FileSet {
+  Name = "archivo hdd01"
+  Include {
+    Options {
+      signature = MD5
+      One FS = Yes
+    }
+    File = /home/dp/hdd01/
+  }
+}
+
+
+#
+# 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"
+  }
+}
+