[lxc-users] lxc copy without snapshots?
Renato dos Santos
renato.santos at wplex.com.br
Wed Sep 13 17:13:07 UTC 2017
Take a snapshot... and after use the copy with last snapshot.
Em 13-09-2017 14:09, Ingo Baab escreveu:
>
> Hello Sjoerd,
>
> thank you for the answer, but I get (lxc --version says "2.0.10"):
>
> Usage: lxc copy [<remote>:]<source>[/<snapshot>]
> [[<remote>:]<destination>] [--ephemeral|e]
> Copy containers within or in between LXD instances.
>
> Options:
> --debug (= false)
> Enable debug mode
> -e, --ephemeral (= false)
> Ephemeral container
> --force-local (= false)
> Force using the local unix socket
> --no-alias (= false)
> Ignore aliases when determining what command to run
> --verbose (= false)
> Enable verbose mode
>
> I am on Ubuntu 16.04.3 LTS, with LXD 2.0.10
> Any Ideas?
> Ingo
>
>
> Am 13.09.2017 um 18:43 schrieb Sjoerd:
>>
>>
>> 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
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
--
Renato dos Santos
Analista de Infraestrutura
48 3239-2400 Pabx
WPLEX Software Ltda.
Rodovia SC 401, 8600 Corporate Park Bloco 5 Sala 101
88050-000 Santo Antônio de Lisboa, Florianópolis SC
wplex.com.br <http://wplex.com.br>
WPLEX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170913/8839d93c/attachment.html>
More information about the lxc-users
mailing list