434 | | sincronizacion_og || date +"%b %d %T $PROG: Error en sincronizacion_opengnsys" |tee -a $FILESAL $FILELOG |
435 | | sincronizacion_dhcp || date +"%b %d %T $PROG: Error en sincronizacion_dhcp" |tee -a $FILESAL $FILELOG |
436 | | sincronizacion_tftp || date +"%b %d %T $PROG: Error en sincronizacion_tftp" |tee -a $FILESAL $FILELOG |
437 | | sincronizacion_mysql || date +"%b %d %T $PROG: Error en sincronizacion_mysql" |tee -a $FILESAL $FILELOG |
| 434 | CORRECTO="" |
| 435 | sincronizacion_og && CORRECTO="og" || date +"%b %d %T $PROG: Error en sincronizacion_opengnsys" |tee -a $FILESAL |
| 436 | sincronizacion_dhcp && CORRECTO="$CORRECTO dhcp" || date +"%b %d %T $PROG: Error en sincronizacion_dhcp" |tee -a $FILESAL |
| 437 | sincronizacion_tftp && CORRECTO="$CORRECTO tftp" || date +"%b %d %T $PROG: Error en sincronizacion_tftp" |tee -a $FILESAL |
| 438 | sincronizacion_mysql && CORRECTO="$CORRECTO mysql" || date +"%b %d %T $PROG: Error en sincronizacion_mysql" |tee -a $FILESAL |
440 | | date +"%b %d %T opengnsys $(basename $0): Respaldo de opengnsys desde servidor principal finalizado." | tee -a $FILESAL $FILELOG |
441 | | date +"%b %d %T opengnsys $(basename $0): Duracion de la operacion $[TIME/60]m $[TIME%60]s." | tee -a $FILESAL $FILELOG |
| 441 | if [ $CORRECTO == "og dhcp tftp mysql" ]; then |
| 442 | date +"%b %d %T opengnsys $(basename $0): Respaldo de opengnsys desde servidor principal finalizado." | tee -a $FILESAL |
| 443 | date +"%b %d %T opengnsys $(basename $0): Duracion de la operacion $[TIME/60]m $[TIME%60]s." | tee -a $FILESAL |
| 444 | else |
| 445 | date +"%b %d %T opengnsys $(basename $0): Respaldo de opengnsys desde servidor principal no realizado correctamente. Ha ocurrido un error." | tee -a $FILESAL |
| 446 | date +"%b %d %T opengnsys $(basename $0): Sí ha ido bien el respaldo de $CORRECTO." | tee -a $FILESAL |
| 447 | fi |
| 448 | |
| 449 | |