<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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/">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">lxc-users@lists.linuxcontainers.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote>
<br>
</body>
</html>