From 10d4ff62fba97dce5bffac36169c265f0f04a566 Mon Sep 17 00:00:00 2001 From: irina Date: Mon, 26 Jun 2017 09:40:59 +0000 Subject: #755 Se corrigen erratas: opengnsys_import.sh corrección fecha. opengnsys_export.sh separamos backup de la tabla usuario. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@5381 a21b9725-9963-47de-94b9-378ad31fedc9 --- installer/opengnsys_export.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'installer/opengnsys_export.sh') diff --git a/installer/opengnsys_export.sh b/installer/opengnsys_export.sh index ff2c00e7..91364b80 100755 --- a/installer/opengnsys_export.sh +++ b/installer/opengnsys_export.sh @@ -18,6 +18,7 @@ PROG="$(basename $0)" OPENGNSYS="/opt/opengnsys" TMPDIR=/tmp MYSQLFILE="$TMPDIR/ogAdmBD.sql" +MYSQLFILE2="$TMPDIR/usuarios.sql" BACKUPPREFIX="opengnsys_export" # Si se solicita, mostrar ayuda. @@ -77,7 +78,7 @@ mysqldump --defaults-extra-file=$MYCNF --opt $CATALOG \ --ignore-table=${CATALOG}.usuarios > $MYSQLFILE # Tabla usuario mysqldump --defaults-extra-file=$MYCNF --opt --no-create-info $CATALOG \ - usuarios | sed 's/^INSERT /INSERT IGNORE /g' >> $MYSQLFILE + usuarios | sed 's/^INSERT /INSERT IGNORE /g' >> $MYSQLFILE2 # Borrar fichero temporal rm -f $MYCNF @@ -91,6 +92,7 @@ echo $ServidorAdm > $TMPDIR/IPSERVER.txt echo "Creamos un archivo comprimido con los datos: $BACKUPFILE." tar -cvzf $BACKUPFILE --transform="s!^!$BACKUPPREFIX/!" \ -C $(dirname $MYSQLFILE) $(basename $MYSQLFILE) \ + -C $(dirname $MYSQLFILE2) $(basename $MYSQLFILE2) \ -C $TMPDIR IPSERVER.txt \ -C $DHCPDIR dhcpd.conf \ -C $OPENGNSYS/tftpboot menu.lst \ -- cgit v1.2.3-18-g5258