Migrando VPS
De MochilaWiki
Ir para navegaçãoIr para pesquisarClonando com dd
ssh root@remoteIP "dd if=/dev/sda | gzip - " | dd of=image.gz
convertendo para abrir no Virtualbox
gunzip image.gz
VBoxManage convertdd image image.vdi --format VDI
Clonando com rsync
rsync -auHxv -numeric-ids -exclude=/etc/fstab -exclude=/etc/network/* -exclude=/proc/* -exclude=/tmp/* -exclude=/sys/* -exclude=/dev/* -exclude=/mnt/* -exclude=/boot/* -exclude=/root/* root@SRC-IP:/* /
retirando de https://lowendbox.com/blog/how-to-migrate-a-hosted-server-in-5-easy-steps-with-rsync/
para trocar porta tentar “-e ‘ssh -p 22′”. where “-p 22”