[lxc-users] Fastest way to copy containers

Ron Kelley rkelleyrtp at gmail.com
Tue Jul 25 12:23:14 UTC 2017


Thanks Fajar.

Interesting, I have not seen/used “lxd init” yet.  The output of “lxc -h” does not show the init command.  Guess it must be a super-admin command since it is hidden :-)

-Ron





 
On Jul 25, 2017, at 8:18 AM, Fajar A. Nugraha <list at fajar.net> wrote:

On Tue, Jul 25, 2017 at 7:11 PM, Ron Kelley <rkelleyrtp at gmail.com <mailto:rkelleyrtp at gmail.com>> wrote:
Greetings all,

I am trying to copy sites from one LXD to another - both running BTRFS.  The normal “lxc copy” command uses btrfs send/receive which is terribly slow.  Since rsync works much, much faster, is there a quick way to create the container “shell” on the remote server (and register it with LXD) and then manually rsync the data over?


probably 'lxc init', choosing the smallest available container (e.g. images:alpine/3.5). 
 
As an aside; I think LXD should allow the user to specify which copy tool to leverage when doing the copying.  Is that possible?


The intention was probably 'to use storage-specific method, which should be much faster' (which is true with zfs).

-- 
Fajar
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170725/4e182c5b/attachment.html>


More information about the lxc-users mailing list