From 35e1b424514425a60edc3629053f291a39ecdf03 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 3 Sep 2012 11:36:49 +0200 Subject: [PATCH] Add ujobid to .bvfs_get_jobids --- bacula/src/dird/ua_dotcmds.c | 7 +++++++ 1 file changed, 7 insertions(+) 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]); } -- 2.39.2