nano /home/arul/backup_database.shand type these code:
mysqldump -u dbuser -pdbpass dbname > /home/arul/backup/file_name_backup_`date +\%Y%m%d`.sqlthen let's set the schedule to execute the code with Crontab firstly, edit your crontab.
crontab -etype the code:
0 0 * * * /home/arul/backup_database.shYou can list crontab execution code with:
crontab -l
No comments:
Post a Comment