Microsoft Access
Backing up an Access database: how to do it properly
A backup is only worth something if it is complete, recent and you know how to restore it. Here is how to make one with Access and how to organize backups in the office.
In short
- Before the backup, everyone must close the database: a file copied while someone is writing to it can turn out incomplete.
- Access has a dedicated command, Back Up Database, which creates the copy and suggests a name with the date.
- If the database is split, the copy that matters every day is the one of the back end with the tables.
- Keep copies for several days and off the server, and test one every now and then.
- To restore, rename the damaged file and put the copy in its place, under the original name.
Why an Access backup needs care
An Access database is a single file that holds tables, queries, forms and reports. Copying it looks easy, but there is a catch: if someone is using it while you copy it, the copy can contain half-written data and turn out to be useless on the very day you need it.
That is why Microsoft asks for all other users to close the database before the backup. A useful sign: as long as someone has the database open, the same folder contains a file with the same name and the .laccdb extension. Our Access lock file reader lists the computers recorded in that file: on its own it does not tell you who is using the database right now, but it shows on which computers to check that Access is closed.
The Access command for backups
Access creates a copy of the open database without leaving the program. The steps Microsoft gives:
Have everyone else close the database
Ask colleagues to close Access. The backup is made when you are the only one with the database open.
Open the command
Go to File › Save As, choose Save Database As and, under Advanced, Back Up Database. Confirm with Save As.
Keep the name with the date
Access suggests the database name followed by the date. It is best to leave it that way: when a restore is needed, you will know at once which day each copy comes from.
Save it somewhere else
Choose a folder other than the database folder, ideally on another drive, and click Save.
With the database closed on every computer, a plain copy of the file in File Explorer is also a complete backup. The Access command adds the convenience of the dated name.
If the database is split
Many office databases are split into two files: the back end with the tables, on the server, and the front end with forms and reports, on each computer. We explain this in the guide to Access slow on a network.
- The back end holds the data: back it up every day, with the same procedure and with every user out.
- The front end only changes when you modify it: keeping one copy of each version, with the date in the name, is enough.
- A backup made from the front end does not save the data: the command copies the open file, meaning forms and reports, not the linked tables that live in the back end.
To back up the back end, open it directly in Access and use the same command, or copy it in File Explorer when nobody is using the database.
How often to back up and where to keep the copies
One copy is not enough: if a mistake comes to light a few days later, even the latest copy may already contain it. The rules that work in offices:
- Every day, at the end of the working day or overnight, when nobody is working.
- Several copies in rotation: for example one for each of the last few days, one per week for the last month and one per month for the last year.
- At least one copy off the server, on another drive or in another location: a fault or a virus that hits the server must not hit the copies too.
- A copy before any intervention: Compact and Repair, changes to the program, data imports.
- 1Everyone closesnobody is using the database
- 2Dated copyBack Up Database
- 3Off the serveranother drive or another location
- 4Test restoreonce a month
Keeping closed copies in a cloud folder is fine; opening the database from OneDrive or SharePoint is not: Microsoft advises against it, and a damaged file would be synced just as it is.
How to restore a backup
Microsoft describes the restore in a few steps. Before you start, get everyone out of the database.
Close the database
Access must be closed on every computer that uses the file you are replacing.
Rename the damaged file
Do not delete it: give it a different name, for example with the word “damaged” and the date. It may be needed to recover data entered after the backup.
Put the copy in its place
Copy the backup into the database folder and rename it with the exact name of the original file.
Check the data
Open the database and check the most recent entries: anything recorded after the backup has to be rebuilt.
If the database is split and you restore the back end with the same name and in the same folder, the front ends keep finding the tables with no changes.
Would you like an opinion on your case?
Send us the file: within 48 hours you receive a free written assessment, even if the answer is that a small fix is enough.
The test that makes the difference
A copy that has never been tested is a hope, not a backup. Once a month, open a copy in a test folder and check that tables, forms and reports work and that the data is what it was on the day of the backup.
If backups depend on someone remembering them, or if the database has to stay open in the evening too, it is worth moving the data to SQL Server, which makes automatic backups even while people work. Here is how we move data into a modern database.
Frequently asked questions
Can you back up while colleagues are working?
Not with Access: Microsoft asks for the other users to close the database, because a copy made while someone is writing can be incomplete. Backups are made when nobody is working.
Is copying the file in File Explorer enough?
Yes, if nobody has the database open: the closed file is already a complete copy. The Access command also suggests a name with the date.
Does backing up the front end save the data too?
No: if the database is split, the front end holds forms, reports and links, while the data lives in the back end. The back end is what needs backing up every day.
How many copies should you keep?
More than one: for example one for each of the last few days, one per week and one per month. That way the data can be recovered even when a mistake comes to light some time later.
Can backups be automated?
Yes, with the scheduled backups of the server or NAS, timed for when nobody is using the database. If the database has to stay open all the time, it is worth moving the data to SQL Server.
Sources
- Microsoft: protect your data with backup and restore processes
- Microsoft: split an Access database
- Microsoft: ways to share an Access desktop database
Official Microsoft pages.