do final rsync with --inplace to conserve disk space
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 7-lxc-stop-container.sh
1 #!/bin/sh -x
2
3 . ./0-host.sh
4 . ./0-lxc.sh
5 . ./0-ganeti.sh
6
7 ssh_lxc /etc/init.d/lxc-watchdog stop $host
8
9 ssh_lxc rm -v /var/lib/lxc/$host/on_boot
10
11 ssh_lxc rsync -ravH --numeric-ids --inplace --delete --exclude /tmp --exclude /var/tmp /mnt/$host/ $storage:/tmp/$host/