ff->flags = 0;
ff->VerifyOpts[0] = 'V';
ff->VerifyOpts[1] = 0;
+ strcpy(ff->AccurateOpts, "C:mcs"); /* mtime+ctime+size by default */
+ strcpy(ff->BaseJobOpts, "J:mspug5"); /* mtime+size+perm+user+group+chk */
for (i=0; i<fileset->include_list.size(); i++) {
findINCEXE *incexe = (findINCEXE *)fileset->include_list.get(i);
fileset->incexe = incexe;
ff->fstypes = fo->fstype;
ff->drivetypes = fo->drivetype;
bstrncat(ff->VerifyOpts, fo->VerifyOpts, sizeof(ff->VerifyOpts));
+ bstrncat(ff->AccurateOpts, fo->AccurateOpts, sizeof(ff->AccurateOpts));
+ bstrncat(ff->BaseJobOpts, fo->BaseJobOpts, sizeof(ff->BaseJobOpts));
}
dlistString *node;
foreach_dlist(node, &incexe->name_list) {
return 0; /* error return */
}
}
- if (plugin_save) {
- foreach_dlist(node, &incexe->plugin_list) {
- char *fname = node->c_str();
- Dmsg1(100, "PluginCommand: %s\n", fname);
- ff->top_fname = fname;
- ff->cmd_plugin = true;
- plugin_save(jcr, ff, true);
- ff->cmd_plugin = false;
+ foreach_dlist(node, &incexe->plugin_list) {
+ char *fname = node->c_str();
+ if (!plugin_save) {
+ Jmsg(jcr, M_FATAL, 0, _("Plugin: \"%s\" not found.\n"), fname);
+ return 0;
}
+ Dmsg1(100, "PluginCommand: %s\n", fname);
+ ff->top_fname = fname;
+ ff->cmd_plugin = true;
+ plugin_save(jcr, ff, true);
+ ff->cmd_plugin = false;
}
}
}
basename = ff->fname;
}
- ff->ignoredir = incexe->ignoredir;
-
for (j = 0; j < incexe->opts_list.size(); j++) {
findFOPTS *fo = (findFOPTS *)incexe->opts_list.get(j);
ff->flags = fo->flags;