All pastes #221646 Raw Edit

Someone

public text v1 · immutable
#221646 ·published 2006-10-25 20:08 UTC
rendered paste body
# Beza.net Added the following

# Backup directory
BKUDIR=/Backups/HS
DATETAG=`date '+%Y%m%d'`

cd $BKUDIR
if [ -f hs_bck.tgz ]
then
        mv hs_bck.tgz hs_bck-$DATETAG.tgz
fi

if [ -f hs_bck-* ]
then
        find ./hs_bck-* -atime +15 -exec rm {} \;
fi

# End of Beza.net code mod

cd ${CUR_DIR} || exit 1