Backups

Snapshots

๐Ÿ”น 1. Backup

Backup means creating a copy of your database data to prevent data loss.

Common tool: mongodump
Used for manual backups of databases and collections


๐Ÿ”น 2. Restore

Restore means recovering data from backup.

Common tool: mongorestore
Used to bring back data after failure or deletion


๐Ÿ”น 3. Snapshot Concept

A snapshot is a point-in-time backup of the database.

Captures exact state of data at a specific moment

Key Points:

  • Faster than traditional backup
  • Used for quick recovery
  • Stored automatically in cloud systems

Example:

In MongoDB Atlas, snapshots are:

  • Taken automatically
  • Can be restored anytime

Simple:
Snapshot = instant photo of database


๐Ÿ”น 4. Monitoring Concept

Monitoring means tracking database performance and health.

Helps identify:

  • slow queries
  • high CPU/memory usage
  • connection issues


What is monitored?

  • Query performance
  • Server load
  • Disk usage
  • Network activity


Tools:

MongoDB Atlas

  • Real-time dashboards
  • Alerts (email/notifications)

Ops Manager

  • Advanced monitoring
  • Logs and analytics


๐Ÿ”น 5. Ops (Operations)

Ops refers to managing and maintaining the database.

Includes:

  • Backups
  • Monitoring
  • Scaling
  • Performance tuning