Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Bacula® is a registered trademark of John Walker.
+ Bacula® is a registered trademark of Kern Sibbald.
The licensor of Bacula is the Free Software Foundation Europe
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
init_stack_dump();
my_name_is(argc, argv, "bcopy");
+ lmgr_init_thread();
init_msg(NULL, NULL);
while ((ch = getopt(argc, argv, "b:c:d:i:o:pvw:?")) != -1) {
Pmsg0(000, _("Volume label not copied.\n"));
return true;
case SOS_LABEL:
- jobs++;
+ if (bsr && rec->match_stat < 1) {
+ /* Skipping record, because does not match BSR filter */
+ if (verbose) {
+ Pmsg0(-1, _("Copy skipped. Record does not match BSR filter.\n"));
+ }
+ } else {
+ jobs++;
+ }
break;
case EOS_LABEL:
+ if (bsr && rec->match_stat < 1) {
+ /* Skipping record, because does not match BSR filter */
+ return true;
+ }
while (!write_record_to_block(out_block, rec)) {
Dmsg2(150, "!write_record_to_block data_len=%d rem=%d\n", rec->data_len,
rec->remainder);
}
/* Write record */
+ if (bsr && rec->match_stat < 1) {
+ /* Skipping record, because does not match BSR filter */
+ return true;
+ }
records++;
while (!write_record_to_block(out_block, rec)) {
Dmsg2(150, "!write_record_to_block data_len=%d rem=%d\n", rec->data_len,
/* Dummies to replace askdir.c */
bool dir_find_next_appendable_volume(DCR *dcr) { return 1;}
bool dir_update_volume_info(DCR *dcr, bool relabel, bool update_LastWritten) { return 1; }
-bool dir_create_jobmedia_record(DCR *dcr) { return 1; }
+bool dir_create_jobmedia_record(DCR *dcr, bool zero) { return 1; }
bool dir_ask_sysop_to_create_appendable_volume(DCR *dcr) { return 1; }
bool dir_update_file_attributes(DCR *dcr, DEV_RECORD *rec) { return 1;}
bool dir_send_job_status(JCR *jcr) {return 1;}