static int do_sends(struct config *conf) { if( send_incexc_from_strlist("include", "exclude", conf->iecount, conf->incexcdir) || send_incexc_from_strlist("cross_filesystem", "cross_filesystem", conf->fscount, conf->fschgdir) || send_incexc_from_strlist("nobackup", "nobackup", conf->nbcount, conf->nobackup) || send_incexc_from_strlist("include_ext", "include_ext", conf->incount, conf->incext) || send_incexc_from_strlist("exclude_ext", "exclude_ext", conf->excount, conf->excext) || send_incexc_from_strlist("include_regex", "include_regex", conf->ircount, conf->increg) || send_incexc_from_strlist("exclude_regex", "exclude_regex", conf->ercount, conf->excreg) || send_incexc_from_strlist("exclude_fs", "exclude_fs", conf->exfscount, conf->excfs) || send_incexc_from_strlist("exclude_comp", "exclude_comp", conf->excmcount, conf->excom) || send_incexc_from_strlist("read_fifo", "read_fifo", conf->ffcount, conf->fifos) || send_incexc_from_strlist("read_blockdev", "read_blockdev", conf->bdcount, conf->blockdevs) || send_incexc_int("cross_all_filesystems", conf->cross_all_filesystems) || send_incexc_int("split_vss", conf->split_vss) || send_incexc_int("strip_vss", conf->strip_vss) || send_incexc_int("read_all_fifos", conf->read_all_fifos) || send_incexc_long("min_file_size", conf->min_file_size) || send_incexc_long("max_file_size", conf->max_file_size)) return -1; return 0; }
static int do_sends_restore(struct config *conf) { if( send_incexc_from_strlist("include", "exclude", conf->iecount, conf->incexcdir) || send_incexc_str("backup", conf->backup) || send_incexc_str("restoreprefix", conf->restoreprefix) || send_incexc_str("regex", conf->regex) || send_incexc_int("overwrite", conf->overwrite) || send_incexc_long("strip", conf->strip)) return -1; return 0; }