|
|
|
@ -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 |
|
|
|
} |
|
|
|
|