Skip to content

Best Practices for Backup and CDN Storage Replication

Daniel Neto edited this page Jan 17, 2025 · 1 revision

🔒 Backup Server: Your Platform's Safety Net

The backup server is an essential part of your disaster recovery plan. It ensures that critical system components are safe and can be restored in case of failure.

What the Backup Server Does

  • 🗂️ Backs Up:

    • Script files (your platform's code and configurations).
    • Metadata files (titles, descriptions, and settings).
    • Database (user data, logs, and platform settings).
  • 🚫 Does NOT Back Up:

    • 🎥 Video files: These are stored in the CDN and handled separately.

Why a Backup Server Is Critical

While it doesn't include video files, the backup server safeguards the core system infrastructure, allowing you to restore your platform quickly if issues arise.

Note: No system is 100% fail-safe, but having a backup server significantly reduces risks.


🌍 CDN Storage Replication: Redundancy for Your Video Files

For video files, enabling CDN storage replication provides a robust layer of protection and performance optimization.

What Storage Replication Does

  • 🎥 Replicates Video Files: Duplicates video files across multiple regions for added redundancy.
  • Optimizes Delivery: Serves video files from the region closest to your users for faster playback.
  • 🔒 Increases Durability: Protects against data loss from regional storage failures.

Benefits of Storage Replication

  • 🚀 Faster video playback for uncached requests.
  • 🔄 Continuous availability, even during storage issues.
  • 🌍 Improved disaster recovery for video files.

Note: Storage replication focuses solely on video files. Scripts, metadata, and databases remain protected by the backup server.


🔍 Key Differences Between Backup and Replication

Aspect Backup Server Storage Replication
Scope 🛠️ Protects scripts, metadata, and database. 🎥 Focuses on video files only.
Purpose 🌐 Full system recovery. 🌍 Ensures video file availability.
Video Files ❌ Not included (handled by CDN). ✅ Exclusively replicates video files.
Automation 🕒 Manual restoration required. 🤖 Fully automated replication.
Location 📍 Stored in one offsite location. 📡 Duplicated across multiple regions.

🛡️ Why Use Both Backup and Replication?

The Closest We Can Get to 100% Reliability

While no system can guarantee 100% protection, combining a backup server and storage replication provides the most comprehensive reliability and resilience:

  1. 🛠️ The backup server protects your platform's core infrastructure (scripts, metadata, database).
  2. 🌍 Replication ensures video file availability and enhances playback performance.

Together, They Offer:

  • System-Level Protection: Backup server ensures platform recovery.
  • Video-Level Performance: Replication keeps video streaming uninterrupted.
  • Comprehensive Recovery: Safeguards both platform infrastructure and video content.

Recommendations

  1. Use Our CDN Storage: We recommend enabling storage replication to protect and optimize your video files.
  2. Set Up a Backup Server: Safeguard your platform's scripts, metadata, and database at no additional cost.
  3. Clone the Site on a Separate Server: To further enhance reliability and scalability, we recommend using the Clone Site Plugin.

Combining these measures ensures your platform remains robust, resilient, and ready for any challenge.

Clone this wiki locally