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 }