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

2017-04-13 Thread Tomasz Chmielewski
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 clos

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

2017-04-13 Thread Ron Kelley
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 wrote: > > Is there such a thi

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

2017-04-13 Thread Tomasz Chmielewski
It might work, but looks like an overkill to me. Essentially, I want to do: - full container backup - then restore it, perhaps somewhere else, at some point in the future Can I simply copy /var/lib/lxd/containers/MYCONTAINER to a different server an expect it to work? I think it won't work,

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

2017-04-13 Thread Micky Del Favero
Tomasz Chmielewski 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

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

2017-04-13 Thread Serge E. Hallyn
Quoting Micky Del Favero (mi...@mesina.net): > Tomasz Chmielewski 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 > >