projects
/
sysadmin-cookbook
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
recepies/ganeti/migrate-lxc/0-host.sh
@@ -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
+}
+