Cerca

Heus ací els resultats de la cerca.

backup sistema
4 Resultats, Darrera modificació:
stá limitado a 1024 dominios!! # for buzon in `find * -maxdepth 1 -iname *@*` for buzon in `find -maxdepth 2 -iname *@* | sed "s:\.::" ` do ... th_correo$buzon done # backup BBDD mysql for db in `mysql -u root -ptoor -e "show databases;" | grep... gz /etc/* # backup /home (no el vmail) for homes in `find /home/* -maxdepth 0 | grep -v ^$path_correo
backup, encriptado y copia a remoto
4 Resultats, Darrera modificació:
are -a BBDD=("10minutos" "10minutosbeta") for BDD in "${BBDD[@]}"; do /usr/bin/mysqldump --opt --user... kup" "system-3.1.11" "mysqldump") for directorio in "${DIRECTORIOS[@]}"; do DIRECTORIOS_TAR="${DIRE... BDD declare -a BBDD=("fruitsmontmany_es") for BDD in "${BBDD[@]}"; do /usr/bin/mysqldump --opt --user... ("fruitsmontmany.es" "mysqldump") for directorio in "${DIRECTORIOS[@]}"; do DIRECTORIOS_TAR="${DIRE
getopts
4 Resultats, Darrera modificació:
estions/16483119/an-example-of-how-to-use-getopts-in-bash]] == ejemplos * [[https://stackoverflow.c... estions/16483119/an-example-of-how-to-use-getopts-in-bash]] <code bash; primer ejemplo> #!/bin/bash ... 1; } while getopts ":s:p:" o; do case "${o}" in s) s=${OPTARG} ((... bin/bash while getopts ":a:" opt; do case $opt in a) echo "-a was triggered, Parameter: $
mis ficheros $HOME
4 Resultats, Darrera modificació:
file to be useful, you will need a line like this in your # shell configuration file, such as ~/.bashr... to' # # If you want to use a variant of this file in your home directory, # then you can add something... t_Co=16 set t_Sf=m set t_Sb=m endif " Make p in Visual mode replace the selected text with the ""... "set showcmd " Show (partial) command in status line. "set showmatch " Show match
ejecutar el primer o último día del mes
3 Resultats, Darrera modificació:
n/datecalc # weekselector --- script to assist in scheduling cron jobs # Perderabo Oct 11, 2003 #... he next will be "even". An "even" Monday will be in the same # week as an "even" Tuesday. integer m... #date "+%M %d %Y" | read month day year case $1 in even|Even|EVEN|odd|Odd|ODD) integ
Protocolo de Backup
3 Resultats, Darrera modificació:
directorios especificados en LISTA for directorio in $LISTA do DESTINO=`echo $directorio | sed -e ... tar.gz` # FECHA=`eval date +%y%m%d` for FICHERO in $FICHEROS do #encripta gpg -r "Miguel Angel T... ersion SED para eliminar /Database/ for DATABASE in $DBS do if [ $DATABASE != "Database" ]; t
array loop
2 Resultats, Darrera modificació:
1[$INDEX]=tenant2 Tenant2[$INDEX]=tenant22 for i in "${Code[@]}"; do printf '%s\n' "$i" done for i in "${!Code[@]}"; do printf "%s\t%s\t%s\t%s\t%s\n
backup 10 minutos al día
1 Resultats, Darrera modificació:
inutos" "public" "beta" "system") for directorio in "${DIRECTORIOS[@]}"; do ## leer checksum
backup de archivos
1 Resultats, Darrera modificació:
directorios especificados en LISTA for directorio in $LISTA do DESTINO=`echo $directorio | sed -e
linux for-folders
1 Resultats, Darrera modificació:
r-folders <code bash> OIFS="$IFS" IFS=$'\n' for f in `ls -d Gan*`; do unrar e "${f}/${f}.part1.rar"; d
mysqldump
1 Resultats, Darrera modificació:
ón con SED para eliminar /Database/ for DATABASE in $DBS do if [ $DATABASE != "Database" ]; t
Crear ficheros de contenido aleatorio
1 Resultats, Darrera modificació:
one </code> [[http://rajaseelan.com/2009/07/29/generate-files-with-random-content-and-size-in-bash/]]
select
1 Resultats, Darrera modificació:
ash> #!/bin/bash OPCIONES="Hola Salir" select opt in $OPCIONES; do if [ "$opt" = "Salir" ]; then
control de flujo / testing
1 Resultats, Darrera modificació:
adow ]; then .... fi'' * for * <code>for ip in `seq 1 254`; do ssh root@10.1.1.${ip} '/sbin/shut