What about “lxc publish”?  That should allow you to publish your container as 
an image to your local repository.  Then, you can probably use the “lxc image” 
command to pull it from your repository and start it.




> On Apr 13, 2017, at 8:22 AM, Tomasz Chmielewski <[email protected]> wrote:
> 
> 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
> _______________________________________________
> lxc-users mailing list
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users

_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to