[lxc-users] lxd: restore snapshot as a new container?

Tomasz Chmielewski mangoo at wpkg.org
Mon Jan 25 13:19:24 UTC 2016


On 2016-01-20 02:04, Serge Hallyn wrote:
> Quoting Tomasz Chmielewski (mangoo at wpkg.org):
>> Can lxc restore a snapshot as a new container?
>> 
>> Let's say I have a container named "container1" and make a snapshot
>> called "test1":
>> 
>> # lxc snapshot container1 "test1"
>> 
>> 
>> How would I restore it as a new container, called "container1-test"?
> 
> lxc copy container1/test1 container1-test1

If using a filesystem which allows snapshotting (btrfs) - will it copy 
container's directory (uses lots of space, takes long), or snapshot it 
(almost instant, uses almost no extra space)?


Tomasz Chmielewski
http://wpkg.org



More information about the lxc-users mailing list