MySQLBackupScript: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
/etc/crontab;
/etc/crontab;
<pre>0 4 * * * drew /home/drew/cron/mysql_backup.sh >> /home/drew/cron/mysql_backup.log;</pre>
<pre>0 4 * * * drew /home/drew/cron/mysql_backup.sh >> /home/drew/cron/mysql_backup.log;</pre>
OR
crontab -e;
<pre>0 4 * * * /home/drew/cron/mysql_backup.sh >> /home/drew/cron/mysql_backup.log;</pre>

Revision as of 13:29, 24 January 2018

The Script

Moved to GitHub

  • Need to get pw off console command

Crontab Entry

/etc/crontab;

0 4 	* * * 	drew	/home/drew/cron/mysql_backup.sh >> /home/drew/cron/mysql_backup.log;