projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b392cd1
)
support more than one instance as argument
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 1 Mar 2015 14:21:49 +0000
(15:21 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 1 Mar 2015 14:21:49 +0000
(15:21 +0100)
gnt-backup.sh
patch
|
blob
|
history
diff --git
a/gnt-backup.sh
b/gnt-backup.sh
index
e6ffc8f
..
725d998
100755
(executable)
--- a/
gnt-backup.sh
+++ b/
gnt-backup.sh
@@
-1,9
+1,11
@@
#!/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
@@
-14,4
+16,6
@@
gnt-instance list -o name,status,oper_vcpus,oper_ram,disk_usage,pnode,snodes $in
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