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

Serge E. Hallyn serge at hallyn.com
Thu Apr 13 16:38:51 UTC 2017


Quoting Micky Del Favero (micky at mesina.net):
> Tomasz Chmielewski <mangoo at wpkg.org> writes:
> 
> > 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
> 
> Probably it's not the best way to do it, but you can create an
> image starting from the container to be archive, export it to a tar
> archive and then destroy the image:
> 
>   $ lxc publish $container --alias $container

... That's how I usually do this.


More information about the lxc-users mailing list