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)