Article View: es.comp.os.linux.programacion
Article #256Corregir - Shell script para backup
From: chijar
Date: Wed, 07 Apr 2010 17:01
Date: Wed, 07 Apr 2010 17:01
31 lines
2353 bytes
2353 bytes
Queridos amigos, Tengo el siguiente bloque de codigo en un shell, lo unico que quiero es que modifiquen, segun su experiencia, las lineas de codigo que me permitan realizar un respaldo para TODOS LOS DIAS y no solo MENSUALMENTE como se esta haciendo ahora. Las variables ya estan declaradas. el OS es AIX 5.3. Creo que habria que cambiar en algo la primera y segunda linea? # LastDayMonth $MES $ANO ; let last=$? # if [ $last -eq $DIA ] ; then # MSG T "Copiando Backup de Fin de Mes TAPE 4mm" # tar -cvf $TAPE_4mm $TODAY/ scripts/ ; let Res=$? # if [ $Res -eq 0 ] ; then # MSG N "Tar terminado satisfactoriamente Ok $TAPE_4mm" # MSG N "Etiquete el TAPE de la Forma: $MES/$ANO" # MSG X "Descargando TAPE $TAPE_4mm" # tapeutil -f $TAPE_4mm unload # SendMail "Backup de Fin de Mes: $MES/$ANO 4mm" # else # MSG E "Codigo de Error: $Res" # Verif_TAPE $TAPE_4mm "TAR" # SendMail "ERROR: Backup de Fin de Mes: $MES/$ANO 4mm, no se realizo, Verificar!!!" # fi # MSG N "Fin - Copiando Backup de Fin de Mes TAPE 4mm" # else # MSG O "Aun no es fin de mes: $last - $DIA/$MES/$ANO" # fi gracias por su ayuda.
Technical Details
Message-ID:
<45800371-420d-4b3c-a298-23600ab6f352@q23g2000yqd.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!postnews.google.com!q23g2000yqd.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f86c8,811c6d1f99f1ae72,start X-Google-NewGroupId: yes X-Google-Attributes: gid646d03421f,domainid0,public,usenet X-Google-Language: SPANISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!postnews.google.com!q23g2000yqd.googlegroups.com!not-for-mail From: chijar <chijar@gmail.com> Newsgroups: es.comp.os.linux.programacion Subject: Corregir - Shell script para backup Date: Wed, 7 Apr 2010 10:01:03 -0700 (PDT) Organization: http://groups.google.com Lines: 31 Message-ID: <45800371-420d-4b3c-a298-23600ab6f352@q23g2000yqd.googlegroups.com> NNTP-Posting-Host: 200.60.67.168 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1270659663 15568 127.0.0.1 (7 Apr 2010 17:01:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Apr 2010 17:01:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q23g2000yqd.googlegroups.com; posting-host=200.60.67.168; posting-account=IgpM-QoAAADMBHkPCWowQYOaSfz7MATq User-Agent: G2/1.0 X-HTTP-Via: 1.1 webproxy.aris.pe:3128 (squid/2.6.STABLE6) X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0),gzip(gfe)