exclude rootfs/(var)?/tmp from rsync
[sysadmin-cookbook] / 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/