Tag Info

New answers tagged

0

!/bin/sh look=`which find` BACKUPLOCATION="/backup" TODAYDIR=`date +%d-%b-%Y` DELDIR=`date -d "-7 day" +%d-%b-%Y` echo "Backup Deleting For Date : $DELDIR" $LOOK $BACKUPLOCATION -type d -name $DELDIR -exec rm -rf {} \; 2>/dev/null echo "Backup Deleted Successfully...!" exit 0; Above script is to delete backup folders created 7 days before. Run this ...



Top 50 recent answers are included