Cloning OpenVZ container

Posted by Tiffany Walker on Server Fault See other posts from Server Fault or by Tiffany Walker
Published on 2013-07-01T16:48:30Z Indexed on 2013/07/01 23:07 UTC
Read the original article Hit count: 239

Filed under:
|
|
|
|

I have an OpenVZ container on 1 host and I would like to clone it over to my server.

both run SolusVM. I only have root access to my server and would like to host the container on my server now.

Can I use rsync to clone the drive while the OS is running on both?

Using a command like this:

rsync -uazPx --exclude='/boot' --exclude='/proc' --exclude='/dev' --exclude='/lib' --exclude='/tmp' --exclude='/var/lock' / [email protected]:/ 

Is there any other areas I should probably not copy over?

© Server Fault or respective owner

Related posts about linux

Related posts about rsync