473,396 Members | 1,678 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,396 software developers and data experts.

create dump files

Hello all,

I'm fairly new to access database(s), but I work a lot with mysql. I was
wondering if there is a script file out there that I can get a hold of that
will create a dump file. I need to be able to backup this data nightly and
would like it if the script file could name the file with that days date (so
each dump file would be unique). I thank you for any help that you might be
able to provide.

A
May 10 '06 #1
2 5762
Since all of the tables, indexes, and even the referential integrity
settings are all contained in ONE FILE, then the concept of a dump file does
not really apply to ms-access.

In systems like mysql, you have all kinds of files and index files strewn
all over the place, and thus you need somting that will let you save the
data in some sensible matter. In addition, since you would have to stop, or
shutdown the server to copy a individual table file, you thus normally use
the data engine to export the data with a dump command.

Since ms-access databases are complete self contained in ONE file, you can
copy, or even email the WHOLE database by simply sending one file, and you
are done...

So, in your nightly back up...you simply copy the file....

A simple windows batch file, or even a windows script will do the trick.

You could also have the batch file do a compact and a repair on the database
nightly, as that would re-index the data, and in fact kind of clusters the
data, since all tables will be reorganized in primary key index order.
However, compacting the mdb files is a separate issue from backing up.

So, no such concept as a dump file exists, or even applies on conceptual
level to ms-access.

To backup, you simply copy the mdb file. You don't even need ms-access
installed on the computer to do that!!!

Easily as pie..and none of the hassles of a server based system. ......

You can paste in the follwing windows script into a text file.

(aftger you are done pasting..just rename the file with a .vbs extenion, and
you have a windows script). This script can then be run by simply cliking on
it, or having the windows schdeuler run it every night at a time you
specify...

This one names the mdb file to the day of week, so

DOW1, DOW2...etc....

You would get a backup for each day of the week..and it would start
overwriing the file after one week

' ************************************************** *
' Script To Backup an Access MDB file
'
' ************************************************
'
'strFromFile = "\\mainserver\Rides\Rides_be.mdb"
strFromFile = "c:\program Files\Rides\Rides_be.mdb"
strTodir = "c:\Program Files\Rides\DailyBackup\"
strToFile = strToDir & "DOW" & datepart("w",DATE) & ".mdb"

Set objScript= CreateObject("Scripting.FileSystemObject")

' If Not objScript.FolderExists(strToDir) Then
' objScript.CreateFolder(strToDir)
' End If

if msgbox("Start a backup",1) = 1 then
objScript.CopyFile strFromFile, strToFile, True
' **** Inform User that Operation is Completed
'
strMsg = "Backup complete"
MsgBox strMsg,,"Finished"

End If

' **** Clean up
'
Set objScript= Nothing
Try pasting the above into notepad...change the appropriate file names..and
then save it with a extension of .vbs in place of .txt (I assume you like
all developers have file extensions turned on in windows so you can work
with file extensions, and change them!!!). After you rename the above to
..vbs, you can double click on it..and you just run your first windows
script...

You would of course remove the msgbox stuff if you place the above script in
the windows scheduler. (if you use wscript.echo in place of the msgbox, then
your script can be run from the scheduler, and prompts will NOT wait for
input...).

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
May 10 '06 #2
"Albert D. Kallal" <ka****@msn.com> wrote in
news:7g78g.143531$P01.66277@pd7tw3no:
Since ms-access databases are complete self contained in ONE file,
you can copy, or even email the WHOLE database by simply sending
one file, and you are done...


The exception to this is a replicated Jet database, which should
never be emailed or copied. If you want a backup, create a new
replica and synch with it whenever you want to backup your current
data.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
May 10 '06 #3

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

Similar topics

0
by: Guenter Walser | last post by:
Hello, When using the codeline: pickle.dump(self, file, pickle.HIGHEST_PROTOCOL) my program runs perfectly fine: --------------------------- Testprotocol -----------------------------
2
by: Jason Gyetko | last post by:
I have a bunch of old *.000 files in the \SQLLIB\DB2 directory. Those are just dump files that I can get rid of with no effect to the system, right?
0
by: Michael Nguyen | last post by:
So.... I want to create another slave and I want to do it as fast as possible. Normally I take a slave offline, record the position, do a dump, import the dump, set the position and start the new...
1
by: dekel | last post by:
I'm trying to find the way to create and debug dumpfile of dotnet application. Any recommendation of articles, tools for creating dump file + debug it are appreciated. The documentation I...
2
by: chenert | last post by:
Hi all, im beginner to restoring dump files and postgresql as well so hope u could bear with me.! :D i have these dump files and i've been working on restoring everything in it. i've tried...
1
by: avinash jain | last post by:
I got a segmentation fault.. I came to know that the problem could be easliy solved be the core dump files. could any tell how to create a core dump file and how to read a core dump file. I am...
4
by: npankajk | last post by:
Hi, My requirement is to create 75000 files. I have a perl script to create files , it is working fine for small number of files but the script is exiting while creating large number of...
3
crazy4perl
by: crazy4perl | last post by:
Hi All, I have some doubt related to xml. Actually I want to update a file which is in some format. So I am converting that file using Tap3edit perl module in a hash. Now I m trying to create a...
17
by: DeZZar | last post by:
Hi all, I need to regularly backup my database as an Excel file and have been using the File Export option. Problem is I need anyone using the database to be able to do this easily - nopt...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.