473,417 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

how to create automatic backup

can any one help me how to create an automatic backup of ms access
database. Actually I want it to be done either by just clicking on a
button or automatally make a backup at 6pm every day. plz help

Nov 23 '05 #1
9 33465
there's code for a Scheduler on AccessWeb.
http://www.mvps.org/access/modules/mdl0045.htm

Nov 23 '05 #2
On 22 Nov 2005 10:53:09 -0800, "khan" <ah******@gmail.com> wrote:

Create a batch file (mycopy.bat):
copy c:\mydir\myfile.mdb d:\mybackupdir
Place a shortcut to it on your desktop.

-Tom.

can any one help me how to create an automatic backup of ms access
database. Actually I want it to be done either by just clicking on a
button or automatally make a backup at 6pm every day. plz help


Nov 23 '05 #3
There are 3rd party tools ("Total Access Agent" by FMS comes to mind as one)
that will do want you want. Keep in mind that you can't backup (or compact
or copy, etc.) any database that is open, so no coded cmdButton on your form
will do a backup of the database that contains it.
This is even harder in multi-user environments as you'll need all users to
stop accessing the back-end file.
-Ed
"khan" <ah******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
can any one help me how to create an automatic backup of ms access
database. Actually I want it to be done either by just clicking on a
button or automatally make a backup at 6pm every day. plz help

Nov 23 '05 #4
you mean copy the data base on 2 places tom. can you lz explain

Nov 23 '05 #5
On 22 Nov 2005 23:42:43 -0800, "khan" <ah******@gmail.com> wrote:

?
No I mean copy it from some folder (call it c:\mydir) to some other
folder (d:\mybackupdir).
Open a command window, and enter:
copy /?
for more instructions.

-Tom.
you mean copy the data base on 2 places tom. can you lz explain


Nov 23 '05 #6
You definitely can back up or copy an mdb file thta is open. I've done
it brazillions of times over the last ten years and not had a single
issue with it.

Jeremy

Nov 23 '05 #7
You can NOT reliably copy/backup/compact an open MDB, particularly in a
multi-user environment. If in doubt, check the MS Knowledge Base on this
topic. Consider yourself extremely lucky for you past experience.
-Ed

<al*****@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
You definitely can back up or copy an mdb file thta is open. I've done
it brazillions of times over the last ten years and not had a single
issue with it.

Jeremy

Nov 24 '05 #8
I created a db that will compact all my other db's and copy them into a
different folder with dbname_BACKUP_DDMMYY.mdb

Nov 25 '05 #9

Dean wrote:
I created a db that will compact all my other db's and copy them into a
different folder with dbname_BACKUP_DDMMYY.mdb

Also, I can use Windows schedule to open the db at midnight perform
it's task, then close.

Nov 25 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bryja_klaudiusz[at]poczta[dot]fm | last post by:
Hi, How to automate database backup (MSDE server v8.0)? Is some free tool which can help on this or can I use some stored procedure? Plan: Complete - 1 per week Differential - 1 per day --...
3
by: Andy Davis | last post by:
Hi Is there any way of carrying out an automatic daily/weekly backup of an Access 2003 database without the user having to manually remember to do it themselves? Thanks in advance. Dawn
1
by: PJHORNSA | last post by:
Hi all, I want to create a backup of a database using SQLDMO in C#. But I keep on getting a exception. If anyone can help me by providing code for this, it would be appreciated. Thanks in...
2
by: ladino | last post by:
Hi: I'm testing DB2's new automated maintenance feature and, so far it seems to accomplish what it is instructed to do, but we (DBA's) have no control on when the evaluation cycle is going to...
4
by: jl2886 | last post by:
Is there a way to automatically create and save a backup database?
2
by: Kevin Wilcox | last post by:
I’m backing up my BE from within Access; although the filesize is relatively modest (15Mb) for this day and age it can take 3 or 4 minutes for the backup to be completed. There’s nothing I can do...
11
by: limperger | last post by:
Hello everyone! At my workplace, there is a database shared by many users (not the one I have been mentioning in other posts, but a new one!!). It is a single mdb with no front or back-end copies...
9
by: javedsai | last post by:
Hi, I need to build a functionality which can take backup of my database periodically, i.e. admin must able to set the timer in how many days he wants to run database backup. For example, If admin...
3
by: saurabhsingh | last post by:
Hi I need to take automatic backup of my sqlserver2005 database per day. And I don't want to replace old backup,a new backup should be made per day. Thanks in advance
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.