From c03101aa0831b1839f3242f4c174e981e46f0e67 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 2 Jan 2023 11:58:36 -0800 Subject: [PATCH] add rsync instructions --- bin/vmail-domains-exp.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/vmail-domains-exp.sh b/bin/vmail-domains-exp.sh index 05dc044..f6b47e4 100755 --- a/bin/vmail-domains-exp.sh +++ b/bin/vmail-domains-exp.sh @@ -93,9 +93,12 @@ if [[ "$domains_id" -gt '0' ]] ; then /usr/local/bin/vmail-roundcubemail-settings-export.php $domain fi + servername=`hostname -d` + echo echo "Vmail configs for $domain have been exported." - echo "To migrate to a new server sync /var/vmail/$domain/ to the new server and on the new server run:" + echo "To migrate to a new server run these commands (as root) from the new server:" + echo "rsync -v --archive --relative --rsh=/usr/bin/ssh root@$servername:/var/vmail/$domain /" echo "vmail-domains-imp.sh -d $domain" else