export content script 3
This commit is contained in:
parent
bad33dd549
commit
add5ede8f9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue