🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #257

Re: Corregir - Shell script para backup

#257
From: Pascal J. Bourguignon
Date: Wed, 07 Apr 2010 17:16
37 lines
2912 bytes
chijar <chijar@gmail.com> writes:

> 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

Todo esto es un comentario.  Los shells no lo toman en cuenta.  Quizas
seria mejor si quieres una modificaci�n que nos muestra el c�digo real.

-- 
__Pascal Bourguignon__
Technical Details
Message-ID: <87pr2bi3oe.fsf@galatea.lan.informatimago.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <45800371-420d-4b3c-a298-23600ab6f352@q23g2000yqd.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,811c6d1f99f1ae72
X-Google-NewGroupId: yes
X-Google-Attributes: gid646d03421f,domainid0,public,usenet
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pjb@informatimago.com (Pascal J. Bourguignon)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Corregir - Shell script para backup
Date: Wed, 07 Apr 2010 19:16:17 +0200
Organization: Informatimago
Lines: 37
Message-ID: <87pr2bi3oe.fsf@galatea.lan.informatimago.com>
References: <45800371-420d-4b3c-a298-23600ab6f352@q23g2000yqd.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net L5z9PByPDzZRVG2vrfu8egL+nKE8y7sq5/HN4m9LG/i4fMJVLL
Cancel-Lock: sha1:YTkzZDI3ZGFmN2FjOTdiMzQ0Y2NmMDQ5MGFhMmRmZjYwMWEwNzA4Ng== sha1:kGnQEY+R3Jw7OjmmF9ekkotCkxw=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
      oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
      033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
      l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
      mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language:         fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin)