2 ms·
Lots of hosts don't want to let you do that, so you can't port your images to other hosts. That said you can use rsync to transfer the contents of a remote sys
by stevekemp 8y ago
Lots of hosts don't want to let you do that, so you can't port your images to other hosts.
That said you can use rsync to transfer the contents of a remote system to a local-snapshot if you wish. It won't cope with changes made during the run of the rsync, but if you coordinate you can migrate easily with this approach if you wish.
- patrickg_zill 8y agoActually I have used this method for cross-country migration of vms to a new datacenter. You have to exclude /dev and /proc at a minimum, then run rsync twice or more. Downtime was less than a minute, the time spent to reboot the vm and ensure it came up properly.
- stevekemp 8y agoI've done it myself, and have the process pretty well memorized now. As you say if you want to rsync "/" you need to exclude /proc, /sys, & /dev. Then on the new install you want to remove references to MAC address of any NIC that udev might have saved, update the hostname, IP, and similar static details. Finally ensure that your bootloader is correct, and that you don't refer to outdated fileystem UIDs, by either updating them or using device-names instead.