lxc-copy(1) lxc-copy(1) (NAME) lxc-copy - (SYNOPSIS) lxc-copy {-n, --name name} [-P, --lxcpath path] {-N, --newname newname} [-p, --newpath newpath] [-B, --backingstorage backingstorage] [-s, --snapshot] [-a, --allowrunning] [-K, --keepname] [-D, --keepdata] [-M, --keepmac] [-L, --fssize size [unit]] [-- hook arguments] lxc-copy {-n, --name name} [-P, --lxcpath path] [-N, --newname newname] [-p, --newpath newpath] {-e, --ephemeral} [-B, --backingstorage backingstorage] [-s, --snapshot] [-a, --allowrunning] [-K, --keepname] [-D, --keepdata] [-M, --keepmac] [-L, --fssize size [unit]] [-- hook arguments] lxc-copy {-n, --name name} [-P, --lxcpath path] [-N, --newname newname] [-p, --newpath newpath] {-e, --ephemeral} [-B, --backingstorage backingstorage] [-s, --snapshot] [-t, --tmpfs] [-K, --keepname] [-M, --keepmac] [-- hook arguments] lxc-copy {-n, --name name} [-P, --lxcpath path] {-N, --newname newname} [-p, --newpath newpath] {-R, --rename} (DESCRIPTION) lxc-copy ( ) . lxc-copy . () ( ) (copy-on-write) . (backing storage) . btrfs lvm ( lvm ) overlay zfs . . overlay . -e (ephemeral) . lxc.ephemeral = 1 () . -e -D . -t tmpfs . : tmpfs (reboot) ! -e -N . -e (mounts) . -m . : bind overlay. -m . overlay -m overlay=/src:/dest . (dest) dest (src) . bind -m bind=/src:/dest:ro bind - -m bind=/src:/dest:rw . bind - - rw . dest src . : -m bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3. -m . (OPTIONS) -N,--newname newname . -p,--newpath newpath . -R,--rename . -s,--snapshot . . btrfs lvm overlay zfs . -a,--allowrunning . . . -F,--foreground . tty . ( -e .) -d, --daemon ( ). tty . ( -e .) -m, --mount mounttype . opts {bind, overlay} -m bind=/src:/dest:ro,overlay=/src:/dest ( -e ). -t, --tmpfs tmpfs . : tmpfs . -e . . -B, --backingstorage backingstorage 'backingstorage' 'btrfs' 'dir' 'lvm' 'loop' 'overlay' 'zfs' . -L, --fssize size [unit] 'lvm'. -K, --keepname (hostname) . -D, --keepdata -e . -M, --keepmac MAC . (COPY HOOK) lxc.hook.clone . ('lxc') ('clone'). lxc-copy . LXC_ROOTFS_MOUNT . LXC_CONFIG_FILE LXC_NAME LXC_SRC_NAME rootfs LXC_ROOTFS_PATH . (COMMON OPTIONS) lxc . -?, -h, --help . --usage . -q, --quiet . -P, --lxcpath=PATH . /var/lib/lxc . -o, --logfile=FILE FILE. . -l, --logpriority=LEVEL LEVEL. ERROR . : FATAL ALERT CRIT WARN ERROR NOTICE INFO DEBUG TRACE. ERROR (stderr) . -n, --name=NAME NAME. - . --rcfile=FILE . ( lxc-create) . --version . (SEE ALSO) lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc- stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1), lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1), lxc-attach(1), lxc.conf(5) 2026-08-01 lxc-copy(1)