Cron Jobs

  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Joined: Aug 16, 2003
  • Posts: 2297
  • Loc: UK - England
  • Status: Offline

Post July 12th, 2004, 11:07 am

Hi all

( i put this in the hosting forum because it is something to do with cpanel, but if you think it is more coding or design, feel free to move it)

I know what Cron jobs are capable of. like remotly backing up data and so forth.

what i want to know is can i set it to send a backup of 1 mysql database to email?

if so, whats the command?

i would like it to do this everyday, but i am unsure on how to do it.
Codebuddies - Website Development Resource
|INCLUDE(), INCLUDE_ONCE(), REQUIRE() IN PHP | - / - |MICROSOFT CRM 4.0 ONCLICK EVENT WITHIN FORM |
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 12th, 2004, 11:07 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post July 13th, 2004, 6:36 pm

All a cron job does is intialize a program or command at any particular time or time intervals throughout the day. By itself cron jobs cannot do anything. They are only used to automatically startup programs throughout the day.

So you could use a program or command that would do what you want and set it up in a cron job (crontab) so that it performs that task once a day for example.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Joined: Aug 16, 2003
  • Posts: 2297
  • Loc: UK - England
  • Status: Offline

Post July 14th, 2004, 12:41 am

ok, right...

i will look into this more then, thanks

i just saw on another forum that using cron jobs they were able to send backups of their site to different webspace, say everyday.

thanks bwm
Codebuddies - Website Development Resource
|INCLUDE(), INCLUDE_ONCE(), REQUIRE() IN PHP | - / - |MICROSOFT CRM 4.0 ONCLICK EVENT WITHIN FORM |
  • mrdance
  • Born
  • Born
  • No Avatar
  • Joined: Aug 06, 2004
  • Posts: 2
  • Status: Offline

Post August 6th, 2004, 1:44 am

If you want to run cron on windows you can look at this alternative:

http://www.visualcron.com
  • rDolay
  • Expert
  • Expert
  • No Avatar
  • Joined: Jan 16, 2004
  • Posts: 541
  • Status: Offline

Post August 6th, 2004, 5:12 pm

It is littlebit complex to tell with some sentences but yes it would be done

Just fallow the steps http://www.classicwebdesign.com/db_backup/ and dont thank me :D
Best Wrist Watches
  • madmonk
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: May 04, 2004
  • Posts: 2115
  • Loc: australia
  • Status: Offline

Post August 10th, 2004, 10:44 am

great links guys.!
Tattoos Gallery
  • r0Gu3
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 07, 2004
  • Posts: 5
  • Loc: . : T-Dot : .
  • Status: Offline

Post October 8th, 2004, 1:09 am

the link that dolay shared with us is what i used ... and i've set it up to send me a backup of my DB every hr thru e-mail ...

i get the mails all well and good ... but as a test i went and uploaded the backup mysql db (thru cpanel -> backups -> restore database...) and usualy when one uploads a db in this manner u get a page of results of what was added and what not .... but rather i get an empty page :P

so my question is ... based on the link that dolay shared, the backups that are generated ... are they cpanel restore compatible? ... i recall reading at the end of the tutorial on taht site taht comments in the db are shown as "--" rather than "##" and was wondering if thats the reason why the backed up db's have no content whatsoever....

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 35 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.