From: Eric Bollengier Date: Mon, 8 Jun 2020 07:08:32 +0000 (+0200) Subject: regress: Add migrate-sqlquery job definition X-Git-Tag: Release-11.3.2~1488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0d22bfb364466be24087469bf0a0d3f445bd84;p=thirdparty%2Fbacula.git regress: Add migrate-sqlquery job definition --- diff --git a/regress/scripts/bacula-dir-migration.conf.in b/regress/scripts/bacula-dir-migration.conf.in index 91423142ee..261b35adb8 100644 --- a/regress/scripts/bacula-dir-migration.conf.in +++ b/regress/scripts/bacula-dir-migration.conf.in @@ -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