migrate lxc container to ganeti
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 0-host.sh
diff --git a/recepies/ganeti/migrate-lxc/0-host.sh b/recepies/ganeti/migrate-lxc/0-host.sh
new file mode 100644 (file)
index 0000000..7132203
--- /dev/null
@@ -0,0 +1,9 @@
+export host_fqdn=rt.knjiznica.ffzg.hr
+export host=`echo $host_fqdn | cut -d. -f1`
+test -d $host || mkdir $host
+
+ssh_host() {
+       log=`basename $1`
+       ssh root@$host $* | tee $host/$log
+}
+