do final rsync with --inplace to conserve disk space
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 2 May 2014 15:47:36 +0000 (15:47 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 2 May 2014 15:47:36 +0000 (15:47 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@317 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/ganeti/migrate-lxc/7-lxc-stop-container.sh

index b6de545..0cfe3df 100755 (executable)
@@ -8,4 +8,4 @@ ssh_lxc /etc/init.d/lxc-watchdog stop $host
 
 ssh_lxc rm -v /var/lib/lxc/$host/on_boot
 
 
 ssh_lxc rm -v /var/lib/lxc/$host/on_boot
 
-ssh_lxc rsync -ravH --numeric-ids --sparse --delete --exclude /tmp --exclude /var/tmp /mnt/$host/ $storage:/tmp/$host/
+ssh_lxc rsync -ravH --numeric-ids --inplace --delete --exclude /tmp --exclude /var/tmp /mnt/$host/ $storage:/tmp/$host/