cloning running linux machine through network, strategy and tactics

Joshua Marsh joshua at themarshians.com
Tue Aug 7 15:27:06 MDT 2012


On Aug 7, 2012 2:49 PM, "Ryan Byrd" <ryanbyrd at gmail.com> wrote:
> [root at CurrentlyRunningServer ~]$ rsync -ave ssh --delete /* root at NewServer
:/
>
--exclude={/etc/sysconfig/*,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs}
>
> Then he'd just set up the new ip addresses on the new server, and WHAMMO!
> web server #2.
>
> Good idea? bad idea? something better?

You should check out tool like salt or chef. They were designed to do thing
like this, but in a cleaner, more reliable manner.


More information about the PLUG mailing list