]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix restore_job restore keyword
authorEric Bollengier <eric@baculasystems.com>
Thu, 19 Apr 2012 07:04:21 +0000 (09:04 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:36 +0000 (14:50 +0200)
bacula/src/cats/create_sqlite3_database.in
bacula/src/dird/ua_cmds.c
bacula/src/dird/ua_select.c

index 5764be0099ae00fa10ba2165ea45b7db9f5043db..c8b35d48d5af355eb0dd151fff20b6682dc616e4 100644 (file)
@@ -3,9 +3,10 @@
 # shell script to create Bacula SQLite tables
 
 bindir=@SQLITE_BINDIR@
+PATH=$bindir:$PATH
 cd @working_dir@
 db_name=@db_name@
 
-${bindir}/sqlite3 $* ${db_name}.db <<END-OF-DATA
+sqlite3 $* ${db_name}.db <<END-OF-DATA
 END-OF-DATA
 exit 0
index 75b049bc430fbf490d18dd1d34575e4336c15d4f..dce289dfca67556cd5287ee171024a8694d25555 100644 (file)
@@ -156,7 +156,7 @@ static struct cmdstruct commands[] = {                                      /* C
  { NT_("query"),      querycmd,      _("Query catalog"),              NT_(""),              false},
  { NT_("restore"),    restore_cmd,   _("Restore files"), 
    NT_("where=</path> client=<client> storage=<storage> bootstrap=<file> "
-       "restore_job=<job>"
+       "restorejob=<job>"
        "\n\tcomment=<text> jobid=<jobid> done select all"), false},
 
  { NT_("relabel"),    relabel_cmd,   _("Relabel a tape"), 
index ffe1baac55e01b404f292d0f4fdb07f14c88cc41..0780aaa0008212ac34527382f6fe4c3216c7625a 100644 (file)
@@ -299,7 +299,7 @@ JOB *select_job_resource(UAContext *ua)
 JOB *get_restore_job(UAContext *ua)
 {
    JOB *job;
-   int i = find_arg_with_value(ua, "restore_job");
+   int i = find_arg_with_value(ua, "restorejob");
    if (i >= 0 && acl_access_ok(ua, Job_ACL, ua->argv[i])) {
       job = (JOB *)GetResWithName(R_JOB, ua->argv[i]);
       if (job && job->JobType == JT_RESTORE) {