diff options
author | irina <irinagomez@us.es> | 2017-06-26 09:40:59 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2017-06-26 09:40:59 +0000 |
commit | 10d4ff62fba97dce5bffac36169c265f0f04a566 (patch) | |
tree | 4bd0abfb929fa3171887cd41f0ad1efa90893cec /installer/opengnsys_export.sh | |
parent | 754534e66f8edd3f6287135ae35de41d9c5a58bc (diff) |
#755 Se corrigen erratas: opengnsys_import.sh corrección fecha. opengnsys_export.sh separamos backup de la tabla usuario.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5381 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer/opengnsys_export.sh')
-rwxr-xr-x | installer/opengnsys_export.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 \ |