This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# SCRIPT PARA REVOCAR LLAVES DE CLIENTES. | |
# | |
# -- Se verifica que se haya pasado el common name | |
# del cliente como argumento. | |
if [ -z "$1" ]; then | |
echo "Debe Especificar el nombre del cliente!" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -- Respaldo de archivos wtmp y wtmpx | |
# Las copias de seguridad se depositan | |
# en el directorio /var/log. | |
DIA=`date +"%Y%m%d"` | |
HORA=`date +"%H%M"` | |
ARCHIVO_WTMP=wtmp_$DIA-$HORA | |
ARCHIVO_WTMPX=wtmpx_$DIA-$HORA | |
# -- Copia y compacta los archivos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# -- Declaracion de variables. | |
FTP_SERVER=ip_servidor | |
FTP_USER=nombre_usuario | |
FTP_PASS=contraseña_usuario | |
FTP_LOCAL_CD=/tmp | |
BACKUP_NAME=backup_opt.tar.gz | |
# -- Realizando backup de /opt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -- DEFINICIÓN VARIABLES DE FECHA Y HORA. | |
DIA=`date +"%Y%m%d"` | |
HORA=`date +"%H%M"` | |
# -- CONFIGURACIÓN DE VARIABLES GLOBALES | |
DUMP_HOME="." | |
DUMP_FILE="dump_"$DIA"_"$HORA".sql" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -- CONFIGURACIÓN DE VARIABLES GLOBALES | |
APP_HOME="." | |
APP_OUTPUT="import.log" | |
MYSQL_DBUSER_ADM="root" | |
MYSQL_DBUSER="admin" | |
MYSQL_DBPASS="admin" | |
MYSQL_DBNAME="mi_db" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Realiza una copia de seguridad completa de la herramienta Redmine. | |
DIA=`date +"%Y%m%d"` | |
HORA=`date +"%H%M"` | |
BACKUP_PATH=/backups | |
# -- REDMINE | |
REDMINE_HOME=/opt/redmine | |
REDMINE_DB_TYPE=pg #[pg|mysql] | |
REDMINE_DB_NAME=redmine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIA=`date +"%d/%m/%Y"` | |
HORA=`date +"%H:%M"` | |
echo "Hoy es el $DIA y la hora actual es $HORA!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Realiza una copia de seguridad completa de la herramienta. | |
# DEFINICION DE CONSTANTES. | |
# ========================= | |
DIA=`date +"%Y%m%d"` | |
HORA=`date +"%H%M"` | |
# VARIABLES DE CONFIGURACION. | |
# =========================== |
OlderNewer