[lxc-users] lxc archive / lxc restore command?
Ron Kelley
rkelleyrtp at gmail.com
Thu Apr 13 12:28:41 UTC 2017
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 <mangoo at wpkg.org> 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
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list