[lxc-users] lxc copy without snapshots?

Sjoerd sjoerd at sjomar.eu
Wed Sep 13 16:43:31 UTC 2017



On 13-09-17 16:07, Ingo Baab wrote:
> Hi All,
>
> how can I copy a container between LXD instances without all its 
> snapshots?
> I read at 
> https://insights.ubuntu.com/2016/03/22/lxd-2-0-your-first-lxd-container/
>
> "The destination container will be identical in every way to the 
> source one, except it won’t have any snapshot and volatile keys (MAC 
> address) will be reset."
>
> But my invoked command "lxc copy remotebox:ubuntu16 ubuntu16" did copy 
> all snapshots, which took a long time.. - both of my LXD servers are 
> using ZFS.
>
Have you tried with --container-only as well?

If you would just give lxc copy <enter> you'll see the options you can 
pass and for --container-only it describes:
--container-only  (= false)
         Copy the container without its snapshots

Cheers,
Sjoerd



More information about the lxc-users mailing list