#!/bin/sh -xe
-instance=$1
node=arh-hw
ganeti_export=arh-hw/ganeti/export
+while true ; do
+
+instance=$1
if [ -z "$instance" ] ; then
ssh $node zfs list -t all -r $ganeti_export
exit 0
gnt-backup export --noshutdown -n $node $instance || true # ignore error on swap partition
ssh $node zfs snap ${ganeti_export}@`date +%Y-%m-%d`_${instance}
+shift
+done