Backup and Recovery Flashcards
What is Backup?
A Backup of a database is a representative copy of data containing all necessary
contents of a database such as data files and control files
two major types of backup?
Physical Backup: A copy of physical database files such as data, control files,
log files, and archived redo logs.
▷ Logical Backup: A copy of logical data that is extracted from a database
consisting of tables, procedures, views, functions, etc
What is recovery?
Recovery is the process of restoring the database to its latest known consistent state
after a system failure occurs.
What is a Database Logs?
◦ A Database Log records all transactions in a sequence. Recovery using logs is quite
popular in databases
◦ A typical log file contains information about transactions to execute, transaction
states, and modified values
What situations warrant Backup?
Disaster Recovery
Client Side Changes
Auditing
Downtime
What are the Types of Backup Data?
- Business Data
- System Data (Environment/ configuration)
- Media
What are the types of Backup Strategies
- Full Backup
- Incremental Backup
- Differential Backup
What is Full Backup?
- Full Backup backs up everything. This is a complete copy, which stores all the objects
of the database: tables, procedures, functions, views, indexes etc. Full backup can
restore all components of the database system as it was at the time of crash. - A full backup must be done at least once before any of the other type of backup
What is Incremental Backup?
Incremental backup targets only those files or items that have changed since the last
backup. This often results in smaller backups and needs shorter duration to complete
the backup process.
What is Differential Backup?
Differential backup backs up all the changes that have occurred since the most recent
full backup regardless of what backups have occurred in between
What is Hot Backup?
Hot backup refers to keeping a database up and running while the backup is
performed concurrently
What is transaction logging?
- Transactional Logging is used in circumstances where a possibly inconsistent backup is taken, but another file generated and backed up (after the database file has been
fully backed up) can be used to restore consistency.
What are hot backup maiinly used for?
In regular database systems, hot backup is mainly used for Transaction Log Backup.
What are cold backup strategies and when are they preferred?
Cold backup strategies like Differential, Incremental are preferred for Data backup.
What are the various failure classifications?
- Transactional Failure (a. Logical Errors, b. System Errors)
- System Crash (Fail-Stop Assumption)
- Disk Failure