You are on page 1of 1

#!

/bin/ksh
fecha=`date '+%Y%m%d'`
filename=/respaldos/respaldo$fecha.tar
cd /usr/local/apache2/htdocs/sistema
tar cf $filename `find . -name "*.php"`
if test -t $filename
then
gzip -9 $filename
fi

You might also like