Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automated Backup of Database or table

Status
Not open for further replies.

696796

Programmer
Aug 3, 2004
218
GB
Hello,

I have searched on this but didn't find much...

I am looking into methods of data recovery in case our systems go down at work.

Is it at all possble to backup the database to say the C:\ at a regular interval, ie. at 12pm every day. The backup would overwrite the old file.

Kind regards,

alex
 
P.S - I don't want it on the click of a button, just like a scheduled event.
 
Many ways to do this...if you have Task Scheduler, which I think came with w98 and up, you can, at the simplest, run a .bat file to copy the file. With more advanced batch script or windows scripting, you can name the file with a sequenced name so overwriting isn't needed, and you'd have a poor-man's incremental backup.

There's also Windows Backup, which, while it is a buggy, unstable tool, will likely work for these purposes, and you can do incremental with that as well.

Keep in mind disk space when doing this.
--Jim

 
I like the sound of that, i'll do some research on batch files and let you know how i get on...
 
I have created the needed bat file, i just thought it may be a good idea to run it on the click of a button on a form.

How do i call the bat file from VBA?
 
Done it thanks,

Dim RetVal
RetVal = Shell("C:\Documents and Settings\marchale\Desktop\copytest.bat", vbHide)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top