Skip to content

Instantly share code, notes, and snippets.

@janosmiko
Last active January 14, 2017 22:47
Show Gist options
  • Save janosmiko/8cac94e95e9489581c004657b7f465d9 to your computer and use it in GitHub Desktop.
Save janosmiko/8cac94e95e9489581c004657b7f465d9 to your computer and use it in GitHub Desktop.
## on the old server
# su - zimbra -c "zmcontrol stop"
# rsync -Pavrz --delete -e 'ssh -i /tmp/id_rsa' /opt/zimbra/ \
{new-servers-ip}:/opt/zimbra/
# tar -zcvp --exclude=/dev --exclude=/proc --exclude=/sys \
--exclude=/opt --exclude=/tmp/id_rsa / | ssh -i /tmp/id_rsa \
root@{new-servers-ip} "(cat > /data/old-$(date +%d-%m-%Y).full-fs.tgz)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment