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-lxc.sh
diff --git a/recepies/ganeti/migrate-lxc/0-lxc.sh
b/recepies/ganeti/migrate-lxc/0-lxc.sh
new file mode 100644
(file)
index 0000000..
523da2f
--- /dev/null
+++ b/
recepies/ganeti/migrate-lxc/0-lxc.sh
@@ -0,0
+1,9
@@
+export lxc=prod
+
+test -d lxc || mkdir lxc
+
+ssh_lxc() {
+ log=`basename $1`
+ ssh root@$lxc $* | tee lxc/$log
+}
+