3 ms·
Actually 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 o
by patrickg_zill 8y ago
Actually 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.