From: Eric Bollengier Date: Mon, 3 Sep 2012 09:36:49 +0000 (+0200) Subject: Add ujobid to .bvfs_get_jobids X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35e1b424514425a60edc3629053f291a39ecdf03;p=bacula%2Fbacula Add ujobid to .bvfs_get_jobids --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index c90052b2ef..d78fa3fbd7 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -523,6 +523,8 @@ static bool dot_bvfs_versions(UAContext *ua, const char *cmd) * -> returns needed jobids to restore * .bvfs_get_jobids jobid=1 all * -> returns needed jobids to restore with all filesets a JobId=1 time + * .bvfs_get_jobids ujobid=JobName + * -> returns needed jobids to restore */ static bool dot_bvfs_get_jobids(UAContext *ua, const char *cmd) { @@ -538,6 +540,11 @@ static bool dot_bvfs_get_jobids(UAContext *ua, const char *cmd) } memset(&jr, 0, sizeof(JOB_DBR)); + + if ((pos = find_arg_with_value(ua, "ujobid")) >= 0) { + bstrncpy(jr.Job, ua->argv[pos], sizeof(jr.Job)); + } + if ((pos = find_arg_with_value(ua, "jobid")) >= 0) { jr.JobId = str_to_int64(ua->argv[pos]); }