
February 18th, 2005, 05:52 AM
|
|
Contributing User
|
|
Join Date: Feb 2005
Posts: 36
Time spent in forums: 17 h 28 m 10 sec
Reputation Power: 4
|
|
|
Cronjob help
Hey,
ok, i use a cronjob to do a mysqldump everyday, the backup file gets saved in my web spaced, i now want to change my cronjob so it emails me the backup as an attachment, heres the cronjob i use now:
Quote: | 00 21 * * * /usr/local/bin/mysqldump --add-drop-table -h host -u username -ppassword databasename > /files/home1/assimulator/mysqlbackups/mysqlbackup.sql |
host = Host
username = Mysql username
password = Mysql password
databasename = Database name
So what do i do to get it too email me the backup, instead of saving it,
thanks, tim
|