list or create zfs snaphost from gnt-backup export
[gnt-info] / gnt-backup.sh
1 #!/bin/sh -xe
2
3 instance=$1
4 node=arh-hw
5 ganeti_export=arh-hw/ganeti/export
6
7 if [ -z "$instance" ] ; then
8         ssh $node zfs list -t all -r $ganeti_export
9         exit 0
10 fi
11
12 gnt-backup export --noshutdown -n $node $instance || true # ignore error on swap partition
13 ssh $node zfs snap ${ganeti_export}@`date +%Y-%m-%d`_${instance}
14
15