use hostname -s for export node
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 13:49:57 +0000 (15:49 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 13:49:57 +0000 (15:49 +0200)
t/gnt-backup-export.sh

index b432c85..583c437 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh -xe
 
-./bin/ill t- | awk '{ print $1 }' | xargs -i ssh `gnt-cluster getmaster` gnt-backup export -n arh-hw {}
-./bin/backup list -n arh-hw | grep t-
+# this scripts assueme that host on which you are doing gnt-backup is localhost
+
+./bin/ill t- | awk '{ print $1 }' | xargs -i ssh `gnt-cluster getmaster` gnt-backup export -n `hostname -s` {}
+./bin/backup list -n `hostname -s` | grep t-