]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/win32-bacula-dir.conf.in
regress: test script with spaces
[bacula/bacula] / regress / scripts / win32-bacula-dir.conf.in
index e605eac44611fa42772ada6ffe3fa11746165c49..9e10c25a91753612d2bb6d948867b3c93f6dadb6 100644 (file)
@@ -5,7 +5,6 @@
 #   file or directory names in the Include directive of the
 #   FileSet resource.
 #
-#  For Bacula release 2.3.20  
 #
 #
 
@@ -36,6 +35,59 @@ Job {
   SpoolData = yes
 }
 
+#
+# Define the main nightly save backup job
+#   By default, this job will back up to disk in @tmpdir@
+Job {
+  Name = "SystemstateJob"
+  Type = Backup
+  Client = @win32_client@
+  FileSet = "SystemState Set"
+  Storage = File
+  Messages = Standard
+  Pool = Default
+  Write Bootstrap = "@working_dir@/NightlySave.bsr"
+  Maximum Concurrent Jobs = 4
+}
+
+Job {
+  Name = "AccurateJob"
+  Type = Backup
+  Client = @win32_client@
+  FileSet = "Full Set"
+  Storage = File
+  Messages = Standard
+  Pool = Default
+  Accurate = yes
+  Write Bootstrap = "@working_dir@/NightlySave.bsr"
+  Maximum Concurrent Jobs = 4
+  SpoolData = yes
+}
+
+Job {
+  Name = "RunScript"
+  Type = Backup
+  Client = @win32_client@
+  FileSet = "Full Set"
+  Storage = File
+  Messages = Standard
+  Pool = Default
+  Write Bootstrap = "@working_dir@/NightlySave.bsr"
+  Maximum Concurrent Jobs = 4
+  SpoolData = yes
+
+  RunScript {
+   Command = "c:\\tmp\\weird_runscript\\test.bat"               # ok  | ok  | ok
+   Command = "c:/tmp/weird_runscript/test.bat"                  # ok  | ok  | ok
+   Command = "\"c:/tmp/weird_runscript/dir space/test.bat\""    # ok  | ok  | ok
+   Command = "\"c:/tmp/weird_runscript/dir space/test2 space.bat\"" # ok|ok|ok
+   Command = "c:/tmp/weird_runscript/testé.bat"                 # ok  | ok  | ok
+   Command = "c:\\tmp\\weird_runscript\\testé.bat"              # ok  | ok  | ok
+   Command = "\"c:\\tmp\\weird_runscript\\test space.bat\""     # ok  | ok  | ok
+   RunsWhen = AfterVSS
+   FailJobOnError = no
+ }    
+}
 
 # Standard Restore template, to be changed by Console program
 Job {
@@ -57,12 +109,38 @@ FileSet {
   Include { 
      Options { 
         signature=MD5; portable=no  
-         compression=GZIP
+#      compression=GZIP
+     }
+     File = "@win32_file@"
+  }
+}
+# List of files to be backed up
+FileSet {
+  Name = "SystemState Set"
+  Enable VSS = yes
+  Include { 
+     Options { 
+        signature=MD5; portable=no  
+#      compression=GZIP
      }
      File = "@win32_file@"
+     Plugin = "systemstate:/@SYSTEMSTATE/"
   }
 }
 
+# List of files to be backed up
+FileSet {
+  Name = "Plugin Set"
+  Enable VSS = yes
+  Include { 
+     Options { 
+        signature=MD5; portable=no  
+#      compression=GZIP
+     }
+     File = "@win32_file@"
+     Plugin = "systemstate:/@SYSTEMSTATE/"
+  }
+}
 
 #
 # When to do the backups, full backup on first sunday of the month,
@@ -88,28 +166,16 @@ Client {
   Maximum Concurrent Jobs = 4
 }
 
-Client {
-  Name = localhost-fd
-  Address = localhost
-  FDPort = @fdport@
-  Catalog = MyCatalog
-  Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"
-  File Retention = 30d                # 30 days
-  Job Retention = 180d                # six months
-  AutoPrune = yes                     # Prune expired Jobs/Files
-  Maximum Concurrent Jobs = 4
-}
-
 
-# Definition of DDS tape storage device
+# Definition of File storage device
 Storage {
   Name = File
-  Address = @hostname@-sd            # N.B. Use a fully qualified name here
+  Address = @win32_store_addr@       # N.B. Use a fully qualified name here
   SDPort = @sdport@
   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"          # password for Storage daemon
-  Device = File                      # must be same as Device in Storage daemon
+  Device = FileStorage               # must be same as Device in Storage daemon
   Media Type = File                  # must be same as MediaType in Storage daemon
-  AutoChanger = yes
+#  AutoChanger = yes
   Maximum Concurrent Jobs = 4
 }
 
@@ -118,7 +184,7 @@ Storage {
 Catalog {
   Name = MyCatalog
   @libdbi@
-  dbname = regress; user = regress; password = ""
+  dbname = @db_name@; user = @db_user@; password = "@db_password@"
 }
 
 # Reasonable message delivery -- send most everything to email address
@@ -136,6 +202,7 @@ Messages {
 #          also keep all your messages if the scroll off the console.
 #
   append = "@working_dir@/log" = all, !skipped
+  catalog = all, !skipped
 }
 
 #
@@ -146,6 +213,7 @@ Messages {
 # mail = @job_email@ = all, !skipped            
   console = all, !skipped, !saved
   append = "@working_dir@/log" = all, !skipped
+  catalog = all, !skipped
 }