[AccessD] Automatic backup

James Button jamesbutton at blueyonder.co.uk
Thu Mar 17 12:13:47 CDT 2016


Technically that's Wrong 

- you can back it up while open - 
Just the App (DBMS) will probably decline to open the backup - that being on the
basis that the copy shows it is already open - and in use.

You don't discover that until you actually need to open the backup with the DBMS
... ... ...

JimB
 

-----Original Message-----
From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim
Dettman
Sent: Thursday, March 17, 2016 5:03 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] Automatic backup


 You can't backup a currently opened DB.

 There's no locks held on a DB so you can do the file copy.   But if another
user is in, or even in your own process if any background tasks are
processing, you might end up with an inconsistent DB.

 Of course you could do that in a small utility DB.

Jim. 

-----Original Message-----
From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
Bill Benson
Sent: Thursday, March 17, 2016 12:11 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Automatic backup

What is wrong with

Set FSO =CreateObject ("Scripting.FilesystemObject)
On Error Resume Next
Kill strPathtoBackupFile
On Error Goto 0
FSO.GetFile (currentDb.Name).Copy strPathtoBackupFile
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list