Article 5GRQN bash script to run monthly and yearly

bash script to run monthly and yearly

by
1s440
from LinuxQuestions.org on (#5GRQN)
Hi all,

I wanted to run monthly db backups. Can i do like this?

Code:if [ `date +%d` -eq 25 ];then
mysqldump --opt -c -u$user $db | gzip > $backupdir/$dbbackup-monthly-$timestring.sql.gz
fiNot sure how to do it for yearlylatest?d=yIl2AUoC8zA latest?i=mtQm3cLLeGo:l0_E-YI0VBo:F7zBnMy latest?i=mtQm3cLLeGo:l0_E-YI0VBo:V_sGLiP latest?d=qj6IDK7rITs latest?i=mtQm3cLLeGo:l0_E-YI0VBo:gIN9vFwmtQm3cLLeGo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments