Results 1 to 6 of 6
  1. #1
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368

    Making daily backup of database

    Guys,

    As my database is growing and hold more and more data i want to make a daily backup to the local harddisk (it works on a network now) automaticly.
    The way i want it to work is as follows :

    When a user quits the application i want to check if there is a copy allready existing with the date of today.
    If it does it skips the copy process and just quits.
    If it doesnt, i want it to make a backup in a directory. if the directory doesnt exist it must be made.
    The backup file name must hold the date of today offcourse.

    I realise that i have to have a procedure to delete obsolete (outdated) backups as well, but ill worry about that later.

    Offcourse ive tried this a few times, otherwise i wouldnt ask it here. But i seem to fail every time..

    Anyone here that can help me with this ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    1) Are you really trying to have EACH USER back up the entire database every day, to their local directory?

    2) How would you know when the backups become obsolete?

    3) Is your database split FE/BE, or single?

    4) How Big is the database?

    5) How volatile is the data? i.e. What percentage of the data changes each day? i.e. What volume of new records are created each day?

    6) Have you considered a Windows daily scheduled task, to run after hours every night?

    7) You are on a LAN? Have you considered having the backups scheduled to be done automatically by the system group that supports your LAN?

    8) Do you have logging of updates in your database? If so, you could set up the system to have the first user of each day begin a task in background to export the log files to a permanent backup location.

  4. #4
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    Sorry for the late responce but ive been very busy

    A Windows daily scheduled task sounds the way to go.

    How would i go about this ?
    I see how to run programs and make triggers. But i dont see duplicate in the options.

    Thanks for helping.

    Greetz : Jeroen

  5. #5
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Basically, you create a copy script and run that.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Use a VBScript file: http://www.ehow.com/how_8794370_copy-file-vbscript.html

    Schedule event in Windows Scheduler to run the VBAScript.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Making a daily list of people from a database...
    By greentiger in forum Access
    Replies: 5
    Last Post: 02-16-2013, 10:02 AM
  2. Save database as backup
    By MadeCurler in forum Access
    Replies: 3
    Last Post: 11-08-2012, 06:59 AM
  3. access database backup...
    By alex_raju in forum Access
    Replies: 5
    Last Post: 07-17-2011, 09:00 AM
  4. Database backup automation
    By aat in forum Access
    Replies: 2
    Last Post: 09-17-2010, 07:24 PM
  5. Making a backup copy of table or database
    By wasim_sono in forum Access
    Replies: 0
    Last Post: 03-09-2006, 05:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums