<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Take a snapshot... and after use the copy with last snapshot.<br>
</p>
<br>
<div class="moz-cite-prefix">Em 13-09-2017 14:09, Ingo Baab
escreveu:<br>
</div>
<blockquote type="cite"
cite="mid:5fae66b7-bae9-6564-2f92-37b8d738fc2b@baab.de">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Hello Sjoerd, <br>
</p>
<p>thank you for the answer, but I get (lxc --version says
"2.0.10"):</p>
<blockquote>
<p><tt>Usage: lxc copy
[<remote>:]<source>[/<snapshot>]
[[<remote>:]<destination>] [--ephemeral|e]</tt><tt><br>
</tt><tt>Copy containers within or in between LXD instances.</tt><tt><br>
</tt><tt><br>
</tt><tt>Options:</tt><tt><br>
</tt><tt> --debug (= false)</tt><tt><br>
</tt><tt> Enable debug mode</tt><tt><br>
</tt><tt> -e, --ephemeral (= false)</tt><tt><br>
</tt><tt> Ephemeral container</tt><tt><br>
</tt><tt> --force-local (= false)</tt><tt><br>
</tt><tt> Force using the local unix socket</tt><tt><br>
</tt><tt> --no-alias (= false)</tt><tt><br>
</tt><tt> Ignore aliases when determining what command
to run</tt><tt><br>
</tt><tt> --verbose (= false)</tt><tt><br>
</tt><tt> Enable verbose mode</tt><br>
</p>
</blockquote>
<p>I am on Ubuntu 16.04.3 LTS, with LXD 2.0.10<br>
Any Ideas?<br>
Ingo<br>
</p>
<br>
<div class="moz-cite-prefix">Am 13.09.2017 um 18:43 schrieb
Sjoerd:<br>
</div>
<blockquote type="cite"
cite="mid:864805a2-aebb-c4ee-e0c7-6ece2cc1da02@sjomar.eu"> <br>
<br>
On 13-09-17 16:07, Ingo Baab wrote: <br>
<blockquote type="cite">Hi All, <br>
<br>
how can I copy a container between LXD instances without all
its snapshots? <br>
I read at <a class="moz-txt-link-freetext"
href="https://insights.ubuntu.com/2016/03/22/lxd-2-0-your-first-lxd-container/"
moz-do-not-send="true">https://insights.ubuntu.com/2016/03/22/lxd-2-0-your-first-lxd-container/</a>
<br>
<br>
"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." <br>
<br>
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. <br>
<br>
</blockquote>
Have you tried with --container-only as well? <br>
<br>
If you would just give lxc copy <enter> you'll see the
options you can pass and for --container-only it describes: <br>
--container-only (= false) <br>
Copy the container without its snapshots <br>
<br>
Cheers, <br>
Sjoerd <br>
<br>
_______________________________________________ <br>
lxc-users mailing list <br>
<a class="moz-txt-link-abbreviated"
href="mailto:lxc-users@lists.linuxcontainers.org"
moz-do-not-send="true">lxc-users@lists.linuxcontainers.org</a>
<br>
<a class="moz-txt-link-freetext"
href="http://lists.linuxcontainers.org/listinfo/lxc-users"
moz-do-not-send="true">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif;
vertical-align:baseline;line-height:18px;font-size:12px;color:#666;
clear:right; width:100%">
<span style="color:#333;">Renato dos Santos</span><br>
Analista de Infraestrutura<br>
<br>
48 3239-2400 Pabx<br>
<span style="display:inline-block;padding-top:10px;">WPLEX
Software Ltda.</span><br>
<span style="font-size:12px;">Rodovia SC 401, 8600 Corporate
Park Bloco 5 Sala 101<br>
88050-000 Santo Antônio de Lisboa, Florianópolis SC<br>
<a target="_blank" href="http://wplex.com.br"
style="text-decoration:none;color:#333;">wplex.com.br</a><br>
</span>
<img src="http://www.wplex.com.br/logo_mail.png"
style="margin-top:6px; margin-bottom:21px; float:none;
clear:right;" alt="WPLEX" border="0" align="left">
</div>
</div>
</body>
</html>