Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   IT / Communications (http://www.chiefdelphi.com/forums/forumdisplay.php?f=85)
-   -   Cron Jobs (http://www.chiefdelphi.com/forums/showthread.php?t=77657)

Chief Pride 15-06-2009 15:13

Cron Jobs
 
I need to make a cron job that will delete all of the files out of a directory and backup my mysql database, then delete the old backup every night at 12 AM.

I have been searching for some good tutorials but they all seem to rely on knowing UNIX, which I haven't the slightest... If anyone could help me out, that would be great. :)

lynca 15-06-2009 23:02

Re: Cron Jobs
 
I do something like this for sql server backups, to delete a file you will have to add the appropriate "rm" command for your files
Quote:

10 0 * * * cd /home/me/backups; /usr/bin/mysqldump --opt -u DBUSER -pDBPASS DBNAME > databasefile.sql
Here are a couple references for cron jobs,
http://www.linuxhelp.net/guides/cron/
http://www.webmasterworld.com/databa...ql/3277413.htm

Chief Pride 15-06-2009 23:39

Re: Cron Jobs
 
Thanks alot!


All times are GMT -5. The time now is 19:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi