How do I Backup / Move LXC containers?

后端 未结 4 504
Happy的楠姐
Happy的楠姐 2021-01-30 07:47

I want to take lxc container backup. We have server with 12.04 LTS ubuntu server and I have installed LXC - 1.0.0.alpha2 in it. I wanted to update our

4条回答
  •  失恋的感觉
    2021-01-30 08:04

    I agree with Brad Jasperson. I do it this way:

    lxc-clone -KMP /path/to/backup name name
    

    If something goes wrong with your container, and downtime costs a lot, you can run the copy:

    lxc-start -n name -P /path/to/backup
    

    and stop:

    lxc-stop -n name -P /path/to/backup
    

    you can copy it back in place later in appropriate time. Good luck!

提交回复
热议问题