use different kernels
[gnt-info] / gnt-backup.sh
1 #!/bin/sh -xe
2
3 node=arh-hw
4 ganeti_export=arh-hw/ganeti/export
5
6 while true ; do
7
8 instance=$1
9 if [ -z "$instance" ] ; then
10         ssh $node zfs list -o name,written,compressratio -t snapshot -r $ganeti_export
11         exit 0
12 fi
13
14
15 gnt-instance list -o name,status,oper_vcpus,oper_ram,disk_usage,pnode,snodes $instance
16 gnt-backup export --noshutdown -n $node $instance || true # ignore error on swap partition
17 ssh $node zfs snap ${ganeti_export}@`date +%Y-%m-%d`_${instance}
18
19 shift
20
21 done