Wednesday, February 27, 2013

Clean up old backup files.


For clean up old backup files.

cat  /backup/backup_forcleanup.sh

#find /backup/scripts -type d -mtime +10 -name "2009*" -exec rm -rf {} \;
find /backup/scripts/201* -type d -mtime +10 -exec rm -rf {} \;

mail -s "Daily Report for `hostname`"  shrikant.lokhande@example.in < /home/shrikant/daily_report/D_Report_$(date +\%d\%b\%y-\%H%M).txt


mail -s "Hourly Check Result of `hostname` " shrikant.lokhande@example.in < /home/shrikant/daily_logs/oraprod_$(date +\%d\%b\%y-\%H\%M).txt


mail -s "Syslog check of `hostname`"    shrikant.lokhande@example.in <  /home/shrikant/chksyslog/oraprod1_$(date +\%d\%b\%y-\%H\%M)

9 comments:

Unknown said...

Hello !!

It was a great honour to have you in our Commient. And you are more than welcome back at any time....

Happy Job!!!
Visits My sites>Meditation uk

Milon Khan said...


Blog and blog would be of advantage, Thank you for providing information about the update.
Meditation Blogs

Renu said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops Training in electronic city

pragya said...

Impressive. Your story always bring hope and new energy. Keep up the good work.

DevOps Training in Pune

DevOps Online Training

bhanu sree said...

Nice posting!!!Thanks for sharing............
Azure online training in ameerpet
Microsoft azure training
Azure devops online
Microsoft Azure DevOps Training
Microsoft Azure DevOps Online Training
Microsoft Azure DevOps training hyderabad
Azure DevOps online training in hyderabad

Azure DevOps said...

Thank you for sharing any good knowledge and thanks for fantastic efforts.
and also we are providing E-Learning Portal Videos for students and working Professionals
Hurry Up! Bag All Courses in Rs - 10000 /- + taxes
41 Career building courses.
Designed by 33 industrial experts
600+ hours of video Content
DevOps and Cloud E-Learning Portal

easylearn said...


Best content.Thank you so much for sharing,i have learnt something new.I hope you will share more information like this,keep updating.
Best Data Science Certification Course in Bangalore

rajani said...

Nice and good article.Thanks for sharing this useful information.
DevOps Training
DevOps Online Training

Anu said...





I have read so many articles and definitely this one is the best I have read. Thanks for uploading. DevOps Training in Bangalore | Certification | Online Course Training | DevOps Training in Hyderabad | Certification | Online Course Training | DevOps Training in Coimbatore | Certification | Online Course Training | DevOps Training in Online | Certification | Online Course Training