/[sysadmin-cookbook]/recepies/ganeti/migrate-lxc/7-lxc-stop-container.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 306 - (hide annotations)
Sun Jan 12 13:39:28 2014 UTC (10 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 251 byte(s)
migrate lxc container to ganeti
1 dpavlin 306 #!/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/

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26