]> git.sur5r.net Git - bacula/bacula/commitdiff
Allow BVFS to browse and restore Base jobs
authorEric Bollengier <eric@baculasystems.com>
Thu, 26 Jan 2012 13:10:51 +0000 (14:10 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 26 Jan 2012 13:10:51 +0000 (14:10 +0100)
bacula/src/dird/ua_dotcmds.c

index 0669288b2ce0a35a7d448b36e22706b7f28cf8ef..a2e07385b5b871def1c8d40e6056597e1ff62fbe 100644 (file)
@@ -545,6 +545,12 @@ static bool dot_bvfs_get_jobids(UAContext *ua, const char *cmd)
       return true;
    }
 
+   /* When in level base, we don't rely on any Full/Incr/Diff */
+   if (jr.JobLevel == L_BASE) {
+      ua->send_msg("%s\n", edit_int64(jr.JobId, ed1));
+      return true;
+   }
+
    /* If we have the "all" option, we do a search on all defined fileset
     * for this client
     */