From b29cf4a5a2a70d1cf242b6fa851a5e7184391446 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 5 Feb 2026 16:32:37 +0400 Subject: [PATCH] sympa export certbot --- sympa/resources/tools/sympa_export.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sympa/resources/tools/sympa_export.bash b/sympa/resources/tools/sympa_export.bash index 6b56533..0a1d34d 100755 --- a/sympa/resources/tools/sympa_export.bash +++ b/sympa/resources/tools/sympa_export.bash @@ -30,10 +30,17 @@ function export_files { gzip "$temp_dir/files.tar" } +function export_certbot { + if [[ -d /etc/letsencrypt/live/$SYMPA_DOMAIN ]]; then + tar -C / -cf "$temp_dir/certbot.tar" etc/letsencrypt + fi +} + function export { create_temp_dir export_database export_files + export_certbot tar -C "$temp_dir" -cf "$temp_name.sympa" . rm "$temp_dir" -rf }