max_
max_

Reputation: 24501

Possible CRON Job Help

I have never used CRON or anything like that, rails etc.. before, but I think that I will need to run one. My idea is to create another DB (MySQL) to take stats of another MySQL database everyday. I would also like this to happen for every week and then every month.

Please could you tell me how I could do this?

Is CRON the right thing to use, and am I spelling it right?!

Upvotes: 0

Views: 69

Answers (1)

Roland Mai
Roland Mai

Reputation: 31097

Cron is a task scheduler for *nix systems. There are plenty of resources out there how to use it. Briefly:

  • You need a script that uses some kind of language that can connect to your database (perl/php) are good options
  • Assuming cron is installed in your system, in a terminal type crontab -e and the format you can find here at wikipedia

Upvotes: 1

Related Questions