From add5ede8f9fdc4d0032a2937ee6884cde583ce5a Mon Sep 17 00:00:00 2001 From: Valentin Date: Tue, 16 Apr 2024 16:07:50 +0200 Subject: [PATCH] export content script 3 --- utils/export-content.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/export-content.sh b/utils/export-content.sh index ac4d3b6..f7df997 100644 --- a/utils/export-content.sh +++ b/utils/export-content.sh @@ -22,7 +22,7 @@ if [[ "$answer" == "y" ]]; then mkdir -p "${export_folder}" mysqldump -u directus -p"${db_password}" directus > "${export_folder}/db_${site_name}_${current_date}" cp -r /var/www/repositories/cms*/uploads "${export_folder}" - tar -czf "/root/content_exports/${export_folder}.tar.gz" -C /root/content_exports/ . + tar -czf "${export_folder}.tar.gz" -C /root/content_exports/ . ssh_port=$(cat /etc/ssh/sshd_config | grep "Port " | sed 's/^Port //') ip=$(hostname -I)