Forked from TsutomuNakamura/rsync_lxc_container.sh
Created
December 23, 2019 15:32
-
-
Save erselbey/1efd354557755a346face3b3f2f9845a to your computer and use it in GitHub Desktop.
Rsync an LXC container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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