[lxc-users] lxc archive / lxc restore command?

Tomasz Chmielewski mangoo at wpkg.org
Thu Apr 13 12:22:13 UTC 2017


Is there such a thing like "lxc archive / lxc restore"? Or perhaps "lxc 
export / lxc import"?


I have a container called "mycontainer". I would like to "archive" it, 
and save to backup.

Then, perhaps a month later, I would like to restore it, on a different 
LXD server.


Right now, the closest command I see there is is "lxc copy".

Unfortunately it requires:

- the copying part needs to be done "now"

- at least one server needs to be able to manage the other server (lxc 
remote)


In other words - how to best achieve:

- tar a selected container

- copy it via SSH somewhere

- restore at some later point in time somewhere else, on a different, 
unrelated LXD server



Tomasz Chmielewski
https://lxadm.com


More information about the lxc-users mailing list