Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rsync an LXC container
rsync --archive --compress --partial --append --delete --numeric-ids \
--exclude=/rootfs/cdrom/* --exclude=/rootfs/dev/* --exclude=/rootfs/media/* --exclude=rootfs/mnt/* \
--exclude=/rootfs/proc/* --exclude=/rootfs/run/* --exclude=/rootfs/sys/* --exclude=/rootfs/tmp/* \
/var/lib/lxc/${container}/ user@desthost:/var/lib/lxc/${container}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment