29 #include "../my_config.h"
48 const path & fs_racine,
49 bool fs_warn_overwrite,
52 bool display_treated_only_dir,
58 bool warn_remove_no_match,
62 archive_options_extract::t_dirty dirty,
68 extern void filtre_sauvegarde(
const std::shared_ptr<user_interaction> & dialog,
71 const pile_descriptor & pdesc,
74 const path & fs_racine,
77 bool display_treated_only_dir,
79 bool display_finished,
83 const mask &compr_mask,
88 bool furtive_read_mode,
92 bool cache_directory_tagging,
97 const infinint & sparse_file_min_size,
98 const std::string & backup_hook_file_execute,
99 const mask & backup_hook_file_mask,
102 const std::string & exclude_by_ea,
103 bool delta_signature,
104 const infinint & delta_sig_min_size,
105 const mask & delta_mask,
107 bool auto_zeroing_neg_dates,
108 const std::set<std::string> & ignored_symlinks,
112 extern void filtre_difference(
const std::shared_ptr<user_interaction> & dialog,
116 const path & fs_racine,
118 bool display_treated,
119 bool display_treated_only_dir,
120 bool display_skipped,
122 const mask & ea_mask,
124 bool furtive_read_mode,
127 bool compare_symlink_date,
131 extern void filtre_test(
const std::shared_ptr<user_interaction> & dialog,
136 bool display_treated,
137 bool display_treated_only_dir,
138 bool display_skipped,
142 extern void filtre_merge(
const std::shared_ptr<user_interaction> & dialog,
144 const mask & subtree,
145 const pile_descriptor & pdesc,
150 bool display_treated,
151 bool display_treated_only_dir,
152 bool display_skipped,
155 const mask & ea_mask,
156 const mask & compr_mask,
158 bool keep_compressed,
161 bool decremental_mode,
162 const infinint & sparse_file_min_size,
164 bool delta_signature,
165 bool build_delta_sig,
166 const infinint & delta_sig_min_size,
167 const mask & delta_mask,
178 bool decremental_mode,
188 const mask & subtree,
193 bool display_treated,
194 bool display_skipped,
198 bool decremental_mode,
209 const pile_descriptor & pdesc,
212 bool display_treated,
213 bool display_treated_only_dir,
214 const mask & compr_mask,
216 bool keep_compressed,
217 const infinint & sparse_file_min_size,
218 bool delta_signature,
219 bool build_delta_sig,
220 const infinint & delta_sig_min_size,
221 const mask & delta_mask,
228 void filtre_sequentially_read_all_catalogue(
catalogue & cat,
229 const std::shared_ptr<user_interaction> & dialog,
this file contains a set of classes used to transmit options to archive operation
here is defined the classe used to manage catalogue of archives
the catalogue class which gather all objects contained in a give archive
the global action for overwriting
the arbitrary large positive integer class
the generic class, parent of all masks
the class path is here to manipulate paths in the Unix notation: using'/'
class used by libdar::archive class to give a summary of treated file during and after an operation
class to be used as parent to provide checkpoints to inherited classes
modified_data_detection
how to detect data has changed when some fields
comparison_fields
how to consider file change during comparison and incremental backup
std::set< fsa_family > fsa_scope
set of fsa families
void filtre_merge_step0(const std::shared_ptr< user_interaction > &dialog, const catalogue *ref1, const catalogue *ref2, statistics &st, bool decremental_mode, crit_action *&decr, const crit_action *&overwrite, bool &abort, thread_cancellation &thr_cancel)
initialize variables used for merging in step1 and step2
void filtre_merge_step2(const std::shared_ptr< user_interaction > &dialog, const pile_descriptor &pdesc, catalogue &cat, bool info_details, bool display_treated, bool display_treated_only_dir, const mask &compr_mask, const infinint &min_compr_size, bool keep_compressed, const infinint &sparse_file_min_size, bool delta_signature, bool build_delta_sig, const infinint &delta_sig_min_size, const mask &delta_mask, bool &abort, thread_cancellation &thr_cancel, bool repair_mode, const delta_sig_block_size &signature_block_size)
copies data of "cat" catalogue to the pdesc of a brand new archive
void filtre_restore(const std::shared_ptr< user_interaction > &dialog, const mask &filtre, const mask &subtree, const catalogue &cat, const path &fs_racine, bool fs_warn_overwrite, bool info_details, bool display_treated, bool display_treated_only_dir, bool display_skipped, statistics &st, const mask &ea_mask, bool flat, comparison_fields what_to_check, bool warn_remove_no_match, bool empty, bool empty_dir, const crit_action &x_overwrite, archive_options_extract::t_dirty dirty, bool only_deleted, bool not_deleted, const fsa_scope &scope)
void filtre_merge_step1(const std::shared_ptr< user_interaction > &dialog, const mask &filtre, const mask &subtree, catalogue &cat, const catalogue *ref1, const catalogue *ref2, bool info_details, bool display_treated, bool display_skipped, statistics &st, bool make_empty_dir, bool warn_overwrite, bool decremental_mode, crit_action *&decr, const crit_action *&overwrite, bool &abort, thread_cancellation &thr_cancel)
builds a catalogue from two refs with the given policy and filters
here lies a collection of mask classes
bool nodump() noexcept
returns whether nodump flag support has been activated at compilation time
libdar namespace encapsulate all libdar symbols
here is the definition of the path class
class pile definition. Used to manage a stack of generic_file objects
class handling access to the data summary of treated files after and during each operation
defines how to calculate delta signature block size based of file size to delta sign
to be able to cancel libdar operation while running in a given thread.