]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Add migrate-sqlquery job definition
authorEric Bollengier <eric@baculasystems.com>
Mon, 8 Jun 2020 07:08:32 +0000 (09:08 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:19 +0000 (10:44 +0200)
regress/scripts/bacula-dir-migration.conf.in

index 91423142ee5fe563c6195bc530723b2326bd3e68..261b35adb867dba6450f5d779816ca93e65016d2 100644 (file)
@@ -69,6 +69,23 @@ Job {
 # Allow Duplicate Jobs = No
 }
 
+Job {
+  Name = "migrate-sqlquery"
+  Type = Migrate
+  Level = Full
+  Client=@hostname@-fd 
+  FileSet="Full Set"
+  Messages = Standard
+  Storage = DiskChanger
+  Write Bootstrap = "@working_dir@/migratejob.bsr"
+  Pool = Default
+  Maximum Concurrent Jobs = 4
+  Selection Type = SqlQuery
+  # FIXME: works only on postgresql
+  SelectionPattern = "SELECT DISTINCT ON ( Name, ClientId) JobId, Name, EndTime,Level, Type FROM Job WHERE PriorJobId = 0 AND JobStatus IN ('T','W') AND Type = 'B' AND PoolId = 1 ORDER BY Name, ClientId, EndTime DESC ;"
+# Allow Duplicate Jobs = No
+}
+
 Job {
   Name = "migrate-volume"
   Type = Migrate