exclude rootfs/(var)?/tmp from rsync
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 2 May 2014 15:48:22 +0000 (15:48 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 2 May 2014 15:48:22 +0000 (15:48 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@319 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/ganeti/migrate-lxc/5-lxc-rsync-snapshot.sh

index 54cb35f..bb70f55 100755 (executable)
@@ -4,4 +4,4 @@
 . ./0-lxc.sh
 . ./0-ganeti.sh
 
-ssh_lxc rsync -ravH --numeric-ids --sparse --delete --exclude /tmp --exclude /var/tmp /tmp/ganeti-$host/ $storage:/tmp/$host/
+ssh_lxc rsync -ravH --numeric-ids --sparse --delete --exclude /tmp --exclude /var/tmp --exclude /rootfs/tmp --exclude /rootfs/var/tmp /tmp/ganeti-$host/ $storage:/tmp/$host/