lxc-to-incus move files instead of sync?

4 views
Skip to first unread message

Ben Green

unread,
Apr 15, 2025, 6:21:23 AMApr 15
to LXC users mailing-list
Hi all,

great to be using Incus, thanks so much to the devs.

Is there a way I can get lxc-to-incus to move files instead of rsync?
Some of my systems don't have a room for a duplicate copy of the
containers I'm trying to move. I've had a look at the source code, it's
all in Go which I'm not familiar with, though I might have a go if I get
desperate. It seems that it does end up executing the system rsync in
the end, at internal/rsync/rsync.go.

On my system I can move the rootfs safely, I have backups of the
original image.

Is there any workaround for this?

Rsync options I can pass to lxc-to-incus like --inplace or
--remove-source-files seem helpful, but they don't delete the source
files until the transfer is complete.

Perhaps I need to use another tool? Any thoughts or help greatly
appreciated.

Cheers,

Ben

Reply all
Reply to author
Forward
0 new messages