]> git.llucax.com Git - mecon/scripts.git/commitdiff
- Se agrega el servidor bal746b a la ronda de cargas matinales
authorLeandro Lucarella <llucax@gmail.com>
Thu, 25 Mar 2004 19:55:47 +0000 (19:55 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 25 Mar 2004 19:55:47 +0000 (19:55 +0000)
novedades/cargas/bal746b.mecon.ar/carga [new file with mode: 0755]
novedades/cargas/bal746b.mecon.ar/scripts/20-copiar-datos [new file with mode: 0755]
novedades/cargas/bal746b.mecon.ar/scripts/50-novedades [new file with mode: 0755]

diff --git a/novedades/cargas/bal746b.mecon.ar/carga b/novedades/cargas/bal746b.mecon.ar/carga
new file mode 100755 (executable)
index 0000000..bc05aff
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Script para cargar bases de datos.
+#
+# Creado por Leandro Lucarella (llucar) el miĆ© ene 22 17:57:00 ART 2003
+#
+
+# ConfiguraciĆ³n.
+home="$1"
+datos="$2"
+host="bal747f"
+user="intranet"
+pass="intranet"
+db="novedades"
+
+# Script.
+/bin/run-parts \
+    --lsbsysinit \
+    --verbose \
+    --arg="$host" \
+    --arg="$user" \
+    --arg="$pass" \
+    --arg="$db" \
+    --arg="$home" \
+    --arg="$datos" \
+    "$home/scripts"
diff --git a/novedades/cargas/bal746b.mecon.ar/scripts/20-copiar-datos b/novedades/cargas/bal746b.mecon.ar/scripts/20-copiar-datos
new file mode 100755 (executable)
index 0000000..f6bb836
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+db="$4"
+home="$5"
+datos="$6"
+
+scp -r "$datos"/* novedades@"$host":"$datos"
+ssh -n novedades@"$host" chmod -v  775 "$datos"
+ssh -n novedades@"$host" chmod -vR 664 "$datos"/*
diff --git a/novedades/cargas/bal746b.mecon.ar/scripts/50-novedades b/novedades/cargas/bal746b.mecon.ar/scripts/50-novedades
new file mode 100755 (executable)
index 0000000..4655d8f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+db="$4"
+home="$5"
+datos="$6"
+
+"$home/../../run-sql-data-parts" "$host" "$user" "$pass" "$db" "$datos"