Ubuntu: how to pack up lxd containers on ubuntu 16.04



Question:

I am very new to LXD, and am liking it a lot! my one challenge I have not overcome though is backups. There are a few containers I want to run that I would really like to have a backup of, and to be honest I am having a hard time finding a god walkthrough for this. I don't need backups that are automatic and happen all the time, a manual process is fine. Just want to know the right way to backup a container, and restore it after a total loss of the HDD on the host...


Solution:1

I was searching for this as well and found this page. For now, the upstream LXD devs have this page on LXD backups.

The simplest and easiest for me is:


Secondary LXD

This requires a second LXD instance to be setup and reachable from the LXD instance that is to be backed up. Then, all containers can be copied to the secondary LXD instance for backup.


So basically, lxc copy <container> remote:<container>


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »