export content script 3

This commit is contained in:
Valentin 2024-04-16 16:07:50 +02:00
parent bad33dd549
commit add5ede8f9
1 changed files with 1 additions and 1 deletions

View File

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