-Index: src/dird/dird_conf.c
-===================================================================
---- src/dird/dird_conf.c (révision 6151)
-+++ src/dird/dird_conf.c (copie de travail)
-@@ -133,6 +133,7 @@
- {"tlskey", store_dir, ITEM(res_dir.tls_keyfile), 0, 0, 0},
- {"tlsdhfile", store_dir, ITEM(res_dir.tls_dhfile), 0, 0, 0},
- {"tlsallowedcn", store_alist_str, ITEM(res_dir.tls_allowed_cns), 0, 0, 0},
-+ {"statisticsretention", store_time, ITEM(res_dir.stats_retention), 0, ITEM_DEFAULT, 60*60*24*31*12*5},
- {NULL, NULL, {0}, 0, 0, 0}
- };
-
-@@ -318,6 +319,7 @@
- {"selectionpattern", store_str, ITEM(res_job.selection_pattern), 0, 0, 0},
- {"runscript", store_runscript, ITEM(res_job.RunScripts), 0, ITEM_NO_EQUALS, 0},
- {"selectiontype", store_migtype, ITEM(res_job.selection_type), 0, 0, 0},
-+ {"usestatistics", store_bool, ITEM(res_job.stats_enabled), 0, 0, 0},
- {NULL, NULL, {0}, 0, 0, 0}
- };
-
-@@ -637,6 +639,9 @@
- if (res->res_job.RegexWhere) {
- sendit(sock, _(" --> RegexWhere=%s\n"), NPRT(res->res_job.RegexWhere));
- }
-+ if (res->res_job.stats_enabled) {
-+ sendit(sock, _(" --> StatsEnabled=%d\n"), res->res_job.stats_enabled);
-+ }
- if (res->res_job.RestoreBootstrap) {
- sendit(sock, _(" --> Bootstrap=%s\n"), NPRT(res->res_job.RestoreBootstrap));
- }
-Index: src/dird/dird_conf.h
-===================================================================
---- src/dird/dird_conf.h (révision 6151)
-+++ src/dird/dird_conf.h (copie de travail)
-@@ -129,6 +129,7 @@
- bool tls_enable; /* Enable TLS */
- bool tls_require; /* Require TLS */
- bool tls_verify_peer; /* TLS Verify Client Certificate */
-+ utime_t stats_retention; /* Stats retention period in seconds */