What You Must Know About Database Backups and Recoveries


What You Must Know About Database Backups and Recoveries

Once again, I will provide two overviews about the important issues covered in this chapter. The first provides an overview that's applicable to all IT professionals, because everyone should be concerned with backups. The second summary covers extra topics that are relevant to the developer.

Overview for the DBA, IT Manager, and the Developer

Backing up and recovering an Access database would be easy if you could instantly get everyone to log off the database just before the system backup was due to commence. This process used to be called tape backup, but these days, databases can be backed up to all sorts of media, such as portable hard drives and DVD burners. If people are using the database when your system backup runs, you risk copying a database that is in an unstable state, which could cause you problems when you need to recover the database. This chapter provides solutions to that issue by showing you how to:

  • Make sure that your database is ready for a system backup.

  • Show you how to back up your database to another location, including the new Access 2003 backup menu command.

  • Provide insight into good backup procedures.

  • Back up and recover individual tables while the database is in use by using both text and XML formats and objects that use the text format.

  • Recover relationships, menus , and import/export specifications.

Of course, there are other reasons why you need to back up your databases, from computer equipment theft to the proverbial bus running over the laptop. One extremely good reason to use some of the object- and table-exporting software is that someone may unknowingly delete something or lock something while implementing database protection. Because problems like these always lurk around the corner, the more alternatives that you have, the more chances that you have to save lost information.

Caution  

All the backup techniques described in this chapter can leave your security open to exploitation because you are creating yet more copies of the database and its objects for people to view. If you are serious about protecting and securing your backups, read Chapter 12 to find out how the operating system can protect the backup files. As part of this protection, you need to make sure that the Windows account that does the backups has write permissions for the backup directory.

Overview for the Developer

The gist of this chapter is to make it easy for you to incorporate backup routines into your own applications, and most of the material covered in this chapter will require that you integrate the demonstration material into a database. Apart from the benefits of the different backup processes discussed, you'll learn other important things:

  • Different ways to identify all the tables and objects in your database.

  • Another good use for XML.

  • The undocumented and powerful SaveAsText and LoadFromText methods .

  • Find out the very elusive facts about which are the biggest objects in your database, which is a very useful by-product of the object backup software in this chapter.

If that sounds like a lot of work, rest assured that most of the forms and functions from the demonstration database should not require too much customization when you add them to your database.

Now we will have a look in more detail about what you need to do to back up a database that has multiple users.




Real World Microsoft Access Database Protection and Security
Real World Microsoft Access Database Protection and Security
ISBN: 1590591267
EAN: 2147483647
Year: 2003
Pages: 176

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net