From 5154af3a524a81b3f16e1968e7e75748a7cf3ac0 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 9 Mar 2020 20:05:48 +0000 Subject: [PATCH] increase verbosity --- dev/download-data.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/download-data.sh b/dev/download-data.sh index 1a0e8cb..194e2c6 100755 --- a/dev/download-data.sh +++ b/dev/download-data.sh @@ -7,12 +7,13 @@ else fi _host="$_local_hostname.$_local_domain" -echo "$_host" +echo "Exporting data from '$_host' ..." _cmd_wp_export="wp db export --dbuser=wordpress --dbpass=$_wp_db_passwd --add-drop-table data.sql" _ssh_cmd="sshpass -p$_passwd_www ssh $_user_www@$_host" _scp_cmd="sshpass -p$_passwd_www scp $_user_www@$_host:/tmp/wordpress.tar.gz" +echo "Exporting data archive ..." $_ssh_cmd "cd /var/www/html/wordpress &&" $_cmd_wp_export $_ssh_cmd 'cd /var/www/html/wordpress && tar czf /tmp/wordpress.tar.gz .' $_ssh_cmd "rm /var/www/html/wordpress/data.sql"