Class 10 | Database Backup, Recovery and Security | DBMS Notes

Backup

Backup refers to the process of creating duplicate copies of data to protect it against:

  • Data loss
  • Data corruption
  • Accidental deletion

Backup is an essential part of:

  • Data management
  • Disaster recovery planning

Types of Backup

There are two major types of backup discussed in the notes:

  1. Physical Backup
  2. Logical Backup

1. Physical Backup

A Physical Backup involves copying data at the storage level, usually at the:

  • Block level
  • Disk level

This type of backup captures the complete contents of a storage device, including:

  • Operating system
  • Applications
  • Data files

Characteristics of Physical Backup

The main characteristics of physical backup include:

  1. It captures data at the storage level, usually at the block or disk level.
  2. It includes the complete contents of the storage device.
  3. It can require significant storage space.
  4. It can take more time to complete.
  5. Its types include:
    • Full Backup
    • Incremental Backup
    • Differential Backup
  6. It is suitable for disaster recovery where the entire system needs to be restored quickly.
  7. It may require specialized backup software and hardware.
  8. Full physical backups may require downtime.
  9. It is suitable for environments where the storage architecture is well-defined and similar across systems.

2. Logical Backup

A Logical Backup involves copying data at a higher level of abstraction.

It may include:

  • Databases
  • Files
  • Directories

Unlike physical backup, logical backup does not directly copy data at the storage-device level.

Instead, it captures data in a format that is independent of the underlying storage architecture.

Logical backups are commonly used for specific types of data such as:

  • Database records
  • Files
  • Application data

They can provide greater flexibility compared with physical backups.

Characteristics of Logical Backup

The main characteristics of logical backup include:

  1. It captures data at a higher level, such as databases, files, or directories.
  2. It is independent of the underlying storage architecture.
  3. Data can be stored in an easily accessible and portable format.
  4. Common types include:
    • Database Backup
    • File-Level Backup
    • Application-Level Backup
  5. It provides flexibility when selecting specific data sets for backup or recovery.
  6. It may require application-specific backup tools or utilities.
  7. It allows more selective or granular recovery.
  8. It is suitable for environments containing different types of applications and data sources.
  9. It may require additional processing during backup, especially for application-level backups involving database dumps or file exports.

Advantages of Database Backup, Recovery and Security

Database backup, recovery, and security provide several important advantages.

1. Data Security

Database backups are an important part of data security.

They allow organizations to restore databases after problems such as:

  • System failure
  • Human error
  • Cyber-attacks
  • Data loss

Strong backup strategies may include:

  • Encryption
  • Access controls
  • Secure storage

These measures help protect sensitive data against:

  • Unauthorized access
  • Data breaches

2. Data Recovery and Replication

Database backups help provide quick and reliable data recovery.

If data is affected by:

  • Corruption
  • Accidental deletion
  • System failure

the database can be restored from a backup copy.

This helps reduce downtime and maintain business continuity.

Database Replication involves creating and maintaining duplicate copies of databases across multiple locations.

Replication helps improve:

  • Data resilience
  • Data availability
  • Disaster recovery capability

It may allow organizations to continue operating even if one location becomes unavailable.

3. Easy Data Management

Database backups can simplify data management by providing a centralized place for storing and organizing backup copies.

Administrators can:

  • Schedule automated backups
  • Manage retention policies
  • Monitor backup operations
  • Manage backups from a central interface

This can reduce administrative work.

4. Cost Control

Effective database backup strategies can help reduce the financial impact of:

  • Data loss
  • System downtime
  • Service interruption

Organizations can invest in backup infrastructure and efficient backup processes to reduce the cost of data-related incidents.

5. Unhindered Performance

Modern backup solutions may include technologies such as:

  • Incremental backup
  • Snapshot-based backup
  • Parallel processing

These can reduce:

  • Backup time
  • Resource consumption
  • Impact on production systems

This helps maintain better performance for important databases and applications.

6. Increased Competitive Advantage

Reliable backup and recovery systems can improve organizational resilience.

They may also help organizations:

  • Build customer trust
  • Maintain service continuity
  • Meet regulatory requirements
  • Protect important business data

7. Maintaining Standards or Compliance

Database backups may help organizations meet industry standards and regulatory requirements related to:

  • Data protection
  • Data retention
  • Security
  • Recovery

The notes mention regulations such as:

  • GDPR
  • HIPAA
  • PCI DSS

Regular database backups can also provide records that support compliance and reporting requirements.

Challenges of Database Backup, Recovery and Security with Strategy

Database backup and recovery involve several challenges.

The notes also provide strategies for managing these challenges.

1. Scheduling Backup Regularly

Challenge

Scheduling and performing backups regularly can be difficult, especially when an organization has:

  • Complex data architecture
  • Multiple databases
  • Distributed systems

Strategy

Use automated backup scheduling tools.

Organizations should:

  • Automate backup tasks.
  • Define backup policies.
  • Create regular schedules.
  • Review backup schedules periodically.
  • Adjust schedules based on changing data volumes and business needs.

2. Preventing Data Corruption

Challenge

Data corruption may occur because of:

  • Hardware failures
  • Software bugs
  • Human errors
  • Malware attacks

Corrupted backups may become unusable and reduce data integrity.

Strategy

Use data-validation methods such as:

  • Checksums
  • Data integrity checks
  • Consistency checks

Other measures include:

  • Redundant storage
  • Fault-tolerant systems
  • Regular backup testing
  • Regular recovery testing

These steps help verify that backup data is usable and recoverable.

3. Aligning with Your Architecture

Challenge

Database backup and recovery processes should match an organization’s existing:

  • Database types
  • Storage systems
  • Data architecture
  • IT infrastructure

Strategy

Backup technologies should be selected according to the organization’s specific architecture.

Factors to consider include:

  • Scalability
  • Performance
  • Compatibility
  • Supported database platforms
  • Storage environments

4. Setting Data Backup Priorities

Challenge

Not all organizational data has the same level of importance.

It may be difficult to decide which data should receive higher backup priority.

Strategy

Perform a risk assessment to identify critical data and applications.

Backup priorities may be based on:

  • Business impact
  • Regulatory requirements
  • Recovery objectives
  • Sensitivity of data

Organizations can then create:

  • Backup policies
  • Service-Level Agreements (SLAs)
  • Priority levels

High-priority data should receive appropriate backup resources and protection.

5. Protecting Against Ransomware

Challenge

Ransomware may:

  • Encrypt important data
  • Delete data
  • Encrypt backup files
  • Make backups inaccessible

Strategy

Use multiple security measures such as:

  • Endpoint protection
  • Network security
  • Access controls
  • User education
  • Offline backups

Offline backups should be stored in secure and isolated environments.

Backup and recovery processes should also be tested regularly.

Methods of Backup

The backup methods discussed in the notes include:

  1. Full Backup
  2. Incremental Backup
  3. Differential Backup
  4. Mirror Backup
  5. Full PC Backup
  6. Local Backup
  7. Offsite Backup
  8. Remote Backup
  9. Cloud Backup
  10. FTP Backup

1. Full Backup

A Full Backup copies all data from the source to the backup destination.

It provides a complete snapshot of data at a particular point in time.

Characteristics

  • Copies all selected data.
  • Provides a complete backup.
  • Requires more storage space.
  • May take more time to complete.

Full backup is suitable for:

  • Creating a baseline backup
  • Restoring an entire system after data loss

2. Incremental Backup

An Incremental Backup copies only the changes made since the previous backup.

The previous backup may be:

  • A full backup
  • Another incremental backup

Incremental backup:

  • Saves storage space
  • Saves backup time

However, complete restoration generally requires:

  1. The latest full backup
  2. All subsequent incremental backups

3. Differential Backup

A Differential Backup stores all changes made since the most recent full backup.

Unlike incremental backup, each differential backup contains all changes made since the last full backup.

This can make restoration easier compared with incremental backup.

4. Mirror Backup

A Mirror Backup creates an exact copy of the source data.

According to the notes, mirror backup does not use:

  • Compression
  • Encryption

It creates a replica of the original data at the backup destination.

Mirror backup is useful for maintaining redundant copies of critical data for disaster recovery.

5. Full PC Backup

A Full PC Backup creates a complete backup of an entire computer system.

It may include:

  • Operating system
  • Applications
  • System settings
  • Data files

It allows the complete computer system to be restored to an earlier state after:

  • Hardware failure
  • System failure
  • Other disasters

6. Local Backup

A Local Backup stores backup copies on storage devices located at the same physical location as the original system.

Examples include:

  • External hard drives
  • Network-Attached Storage (NAS)
  • Tape drives

7. Offsite Backup

An Offsite Backup stores backup copies at a separate physical location away from the original system.

This provides protection against local disasters such as:

  • Fire
  • Flood
  • Theft

Offsite backup may involve:

  • Moving physical backup media to another location
  • Using remote storage
  • Using cloud storage

Online Backup

Online Backup, also known as Cloud Backup, stores backup copies on remote servers accessed through the internet.

Online backup offers benefits such as:

  • Accessibility
  • Scalability
  • Reliability

Online backup services may also provide:

  • Automated backup
  • Encryption
  • Versioning

8. Remote Backup

A Remote Backup stores backup copies of data on remote servers accessed through a network connection.

It may include local or offsite backup approaches depending on where the remote server is located.

Remote backup provides:

  • Data protection
  • Disaster recovery
  • Access without physical proximity to the backup system

9. Cloud Backup

A Cloud Backup stores backup copies on remote servers accessed through the internet.

It is also considered a form of online backup.

Cloud backup provides benefits such as:

  • Scalability
  • Flexibility
  • Cost-effectiveness

Cloud backup services may include:

  • Automated backups
  • Encryption
  • Data de-duplication
  • Data retention policies

10. FTP Backup

FTP Backup uses File Transfer Protocol (FTP) to transfer backup copies of data to a remote server.

It provides a straightforward method for transferring files over a network.

FTP backup can be used for:

  • Local backup
  • Offsite backup

Its use depends on the location of the FTP server and backup destination.

Reasons of Database Failure

A Database Failure can be defined as the inability of a database to execute a specified transaction or the loss of data from the database.

A DBMS may be vulnerable to different types of failures.

Each type of failure may need to be handled differently.

The provided source ends at this introductory explanation and does not include the detailed types or reasons of database failure.

Discussion

Share a helpful question, idea, or explanation with other students.

Leave a Comment

Write a clear question, answer, or helpful explanation.
Your email will not be published.

Download Our Offline App

Study class-wise notes even when internet is not available. Get the app from Play Store.

Nepal eNotes offline app preview
Get it on Google Play