Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Aug 2004, 21:03
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Question Cron Backup Script Pls...

Can any one guide me as to How I'd create a script to backup 1 MySQL database using Vbulletin's Scheduler? I use windows 2000 server and vb3.03 I'vetried using this ./includes/cron/backup.php file below, which works fine (the commands) if I telnet and run them from the command line, but doesnt seem to work right using a cron Scheduler, It creates the file but zero Bytes.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks ...
Peace...

Last edited by xTerMn8R : 21 Aug 2004 at 21:27.
Reply With Quote
  #2  
Old 22 Aug 2004, 03:28
okrogius okrogius is offline
 
Join Date: Dec 2001
Question

You shouldn't do this, as if you have a large forum you will receive corrupt backups due to php timeouts. Rely on your OS way of doing crons or scheduled tasks.
Reply With Quote
  #3  
Old 22 Aug 2004, 20:38
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Thumbs up Gotta cha :up:

Hey thanks for the Suggestion okrogius, I created a batch file on my server that shells out and runs the mysqldump command and parameters with Windows Task Scheduler and Man this has made my life easy...

Just wish I could Name the file, appended with the date each time it backs up, any suggestions? I'll do some Batch research, havent worked with batch files in a long time ...

Anyway Thanks Again... Server and Site healthy and backed up...

Peace...

Got it with a vb Script that calls tha batch ...

Last edited by xTerMn8R : 22 Aug 2004 at 20:59.
Reply With Quote
  #4  
Old 23 Aug 2004, 14:34
Dennis Olson Dennis Olson is offline
 
Join Date: Jul 2004
Just wish I could Name the file, appended with the date each time it backs up, any suggestions?

That's a no-brainer. I create a time/datestamp var in my cron script, and append the contents of the var to the file name (which I set to "ForumBackup"). So my filename ends up being:

ForumBackup-20040815-1345

Works every time....
Reply With Quote
  #5  
Old 23 Aug 2004, 23:21
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Thumbs up

Yep I found a visual basic script Stores and passes the date to a shell Var. that is then called to date exactly as ur's except I took the hr and min out.

Thanks for the relpy...

Peace...
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron job for Files Backup (attachments, avatars, etc.) Lynne vBulletin 3.7 Add-ons 30 09 Nov 2009 01:16

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:05.

Layout Options | Width: Wide Color: