increase verbosity
This commit is contained in:
parent
84f5489388
commit
5154af3a52
|
@ -7,12 +7,13 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_host="$_local_hostname.$_local_domain"
|
_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"
|
_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"
|
_ssh_cmd="sshpass -p$_passwd_www ssh $_user_www@$_host"
|
||||||
_scp_cmd="sshpass -p$_passwd_www scp $_user_www@$_host:/tmp/wordpress.tar.gz"
|
_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 &&" $_cmd_wp_export
|
||||||
$_ssh_cmd 'cd /var/www/html/wordpress && tar czf /tmp/wordpress.tar.gz .'
|
$_ssh_cmd 'cd /var/www/html/wordpress && tar czf /tmp/wordpress.tar.gz .'
|
||||||
$_ssh_cmd "rm /var/www/html/wordpress/data.sql"
|
$_ssh_cmd "rm /var/www/html/wordpress/data.sql"
|
||||||
|
|
Loading…
Reference in New Issue