6e7ab64f1fe4e8ffd3790101bc370b45ad6f4f00
[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
6 ssh_lxc /etc/init.d/lxc-watchdog stop $host
7
8 ssh_lxc rm -v /var/lib/lxc/$host/on_boot
9
10 ssh_lxc rsync -ravH --numeric-ids --sparse --delete --exclude /tmp --exclude /var/tmp /mnt/$host/ 10.60.0.112:/tmp/$host/