/* Only pass "global" commands to the FD once */
if (first_time) {
first_time = false;
+ if (!send_job_permissions(jcr)) {
+ goto bail_out;
+ }
if (!send_runscripts_commands(jcr)) {
goto bail_out;
}
Pmsg0(000, "FAIL: Send restore objects\n");
goto bail_out;
}
+ if (!send_restore_file_list(jcr)) {
+ goto bail_out;
+ }
}
fd->fsend("%s", restore_cmd.c_str());
{
POOL_MEM where;
char creplace;
- const char *replace;
+ const char *replace = NULL;
char sdt[MAX_TIME_LENGTH], edt[MAX_TIME_LENGTH];
char ec1[30], ec2[30], ec3[30], ec4[30], elapsed[50];
char term_code[100], fd_term_msg[100], sd_term_msg[100];
} else if (jcr->JobErrors > 0 || jcr->SDErrors > 0) {
term_msg = _("Restore OK -- with errors");
-
+
} else {
term_msg = _("Restore OK");
}
get_restore_params(jcr, where, &creplace, NULL);
- replace = ReplaceOptions[0].name; /* default */
for (int i=0; ReplaceOptions[i].name; i++) {
if (ReplaceOptions[i].token == (int)creplace) {
replace = ReplaceOptions[i].name;