bstrncat(ff->VerifyOpts, inc->VerifyOpts, sizeof(ff->VerifyOpts));
Dmsg1(100, "find_files: file=%s\n", inc->fname);
if (!file_is_excluded(ff, inc->fname)) {
- if (find_one_file(jcr, ff, file_save, inc->fname, (dev_t)-1, 1) ==0) {
+ if (find_one_file(jcr, ff, file_save, inc->fname, inc->fname, (dev_t)-1, 1) ==0) {
return 0; /* error return */
}
}
}
Dmsg2(200, "Compression alg=%d level=%d\n", inc->algo, inc->Compress_level);
break;
+ case 'd': /* Deduplication 0=none 1=Global 2=Local */
+ rp++; /* Skip z */
+ if (*rp >= '0' && *rp <= '2') {
+ inc->Dedup_level = *rp - '0';
+ }
+ break;
case 'K':
inc->options |= FO_NOATIME;
break;
ff->flags = inc->options;
ff->Compress_algo = inc->algo;
ff->Compress_level = inc->Compress_level;
+ ff->Dedup_level = inc->Dedup_level;
}
return inc;
}