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

Automatic Backup

83
Is there a way to automatically create and save a backup database?
May 29 '07 #1
4 1944
Rabbit
12,516 Expert Mod 8TB
Depends on when and how you want to do it.
May 29 '07 #2
jl2886
83
Might you illucidate how? I don't know how I want to do it because I don't know what my options are?
May 29 '07 #3
jl2886
83
Hmm, maybe I want it to back up every day. and save to a different folder on the server
May 29 '07 #4
Lysander
344 Expert 100+
Hmm, maybe I want it to back up every day. and save to a different folder on the server
This little script works for me, but probablly needs a lot of error checking

It copies my data to another drive, then renames the copy to the filename plus todays date.

This copies the database to another drive
Expand|Select|Wrap|Line Numbers
  1. copy z:\bissau\bissaudata.mdb e:\bissau\bissaudata.mdb
  2. e:
  3. cd ..
  4. cd bissau
  5. z:\bissau\renamedate bissaudata.mdb
  6.  
This is the renamedate script
Expand|Select|Wrap|Line Numbers
  1. @echo off
  2. :START
  3.  
  4. :: -----------------------------------
  5. :: Usage - This check to make sure that there
  6. :: is an argument For the script to use.
  7. :: -----------------------------------
  8. If %1!==! goto USAGE
  9. Set MONTH=
  10. Set DAY=
  11. Set YEAR=
  12. Set HOUR=
  13. Set MIN=
  14. Set MONTH=%DATE:~3,2%
  15. Set DAY=%DATE:~0,2%
  16. Set YEAR=%DATE:~6,4%
  17. Ren %1 %YEAR%-%MONTH%-%DAY%-%1
  18.  
  19.  
  20. Goto done
  21. ::
  22. :: ------------------------ Sub routines ----------------------
  23. ::
  24.  
  25. :USAGE
  26. Cls
  27. echo.
  28. echo.
  29. echo ***** Error *****
  30. echo.
  31. echo.
  32. echo Script did not run
  33. echo.
  34. echo.
  35. echo.
  36. echo Usage Syntax should be: %0 FileName
  37. echo.
  38. echo.
  39. :done 
  40.  
Please note this renamedate script was not written by me, I got it off of this forum but I forget who to give credit to.
May 29 '07 #5

Sign in to post your reply or Sign up for a free account.

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: apple | last post by:
UDB v8 fp 6a on AIX 5.1.0.0 Below is a manual incremental recover from compressed backup datasets. With external compress backup datasets, can it be coded to do an automatic incremental recover?...
6
by: Gert van der Kooij | last post by:
Hi, It's no problem to define the automatic maintenance using the wizard but I want to use commands to automate automation. I captured the SQL statements when activating the maintenance but that...
9
by: khan | last post by:
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
1
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP11. I have followed the docs at http://tinyurl.com/qckrn and enabled automatic statistics collection. It has been 2 days since I updated my DB cfg and...
2
by: ray | last post by:
I have a client that doesn't want Access to automatically repair into a backup file if it crashes (and it crashes only on very rare occasions). My (sketchy) understanding is that this is a...
0
by: swarna_nama | last post by:
i need to configure the db2 database for automatic backup and need to maintain atleast 2 backup images of the database in db2 . I have updated the configuration parameters auto_maint and...
0
by: =?Utf-8?B?TmFzc2VyIEJ1bmR1a2E=?= | last post by:
Hello, Configuring incremental NT Backup in windows XP Professional From start menu go to RUN. ntbackup.exe Advance Mode Backup Wizard (Advanced Mode) Next and specify backup Items Locate...
3
by: Justin | last post by:
What is the difference between automatic and DMS Auto-resize tablespace?
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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:
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...

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.