Skip to main contentSkip to navigation
[email protected]
Client AreaSupport
Hosting Mammoth
HostingMammothYour Data, Our Responsibility
Home
Solutions
Hosting Services
Store
Pricing
About
Blog
API
Contact

Stay Ahead of the Curve

Get the latest insights on cybersecurity, AI innovations, and enterprise data solutions delivered to your inbox.

Hosting Mammoth
HostingMammothEnterprise Solutions

Enterprise-grade data solutions. Hosting, recovery, cybersecurity, and AI-powered services for businesses worldwide.

[email protected]
Sun - Fri, 9:00am - 5:00pm

Services

  • Cloud Hosting
  • Data Recovery
  • Cybersecurity
  • Legal Support
  • MSP Services
  • Web Development
  • AI Services
  • Free Server Migration

Hosting

  • VPS Hosting (NVMe SSD)
  • VDS Hosting (NVMe)
  • Storage VPS (High SSD)
  • GPU Servers
  • Managed Services
  • Cloud Firewall
  • Load Balancer
  • One-Click Apps
  • n8n Hosting
  • Object Storage
  • FAQ

Company

  • Store
  • Pricing
  • About Us
  • Locations
  • Blog
  • Testimonials
  • Contact
  • Affiliate Program
  • White-Label
  • Terms of Service
  • Privacy Policy
  • Browser Cookies
  • SLA

Support

  • Client Area
  • Submit Ticket
  • Knowledge Base
  • Server Status
  • API Documentation

© 2026 Hosting Mammoth. All rights reserved.

Knowledge Base
Getting StartedAccount ManagementVPS HostingGPU ServersStorage VPSCloud FirewallLoad BalancerServer ManagementBilling & PaymentsSupport & TicketsAffiliate ProgramReseller ProgramMarketplace & Appsn8n HostingManaged ServicesServer MigrationAPI & DevelopersSecurityTroubleshootingGlossaryInstall Guides
  1. Home
  2. /
  3. Support
  4. /
  5. Security
  6. /
  7. Backup Strategy
GUIDESecurity

Backup Strategy — Snapshots, Offsite, Automated

4 min read

A solid backup strategy is your last line of defense against data loss from hardware failures, accidental deletion, ransomware, software bugs, and misconfigured updates. This guide helps you plan and implement a comprehensive backup approach for your Data Mammoth servers.

The 3-2-1 Backup Rule

Follow the industry-standard 3-2-1 rule:

  • 3 copies of your data (original + 2 backups)
  • 2 different media types (e.g., server disk + external backup storage)
  • 1 offsite copy (stored in a different physical location)

Backup Types

Server Snapshots

Snapshots capture the complete state of your server at a point in time — including the OS, applications, configurations, and data.

Advantages:

  • Full system restore in minutes.
  • Easy to create and manage through the dashboard.
  • Ideal for pre-change backups (before updates, upgrades, or major configuration changes).
How to create:
  • Navigate to your server's dashboard.
  • Click Snapshots or Backups.
  • Click Create Snapshot.
  • Wait for the snapshot to complete.
  • Automated Backups

    Data Mammoth offers automated backup add-ons that create regular snapshots on a schedule:

    • Daily backups — A snapshot every 24 hours.
    • Weekly backups — A snapshot every 7 days.
    • Retention policy — A set number of backups are kept, with older ones automatically rotated.
    Enable automated backups in your server's Add-ons tab. See Managing Server Add-ons.

    Application-Level Backups

    Back up specific applications and databases for granular recovery:

    Database backups:

    bash
    # MySQL/MariaDB
    mysqldump -u root -p --all-databases > /backup/all_databases_$(date +%Y%m%d).sql

    PostgreSQL

    pg_dumpall -U postgres > /backup/all_databases_$(date +%Y%m%d).sql

    File backups:

    bash
    # Compress website files
    tar -czf /backup/www_$(date +%Y%m%d).tar.gz /var/www/

    Compress configuration files

    tar -czf /backup/etc_$(date +%Y%m%d).tar.gz /etc/

    Offsite Backups

    Store copies of your backups in a separate location:

    • Object storage — Upload backups to cloud storage services.
    • Remote server — Transfer backups to another Data Mammoth server in a different region.
    • Local download — Download backups to your local machine or office storage.
    Example — sync backups to a remote server:

    bash
    rsync -avz /backup/ [email protected]:/offsite-backup/

    Automating Backups with Cron

    Create a backup script:

    bash
    sudo nano /usr/local/bin/backup.sh
    bash
    #!/bin/bash
    DATE=$(date +%Y%m%d_%H%M%S)
    BACKUP_DIR="/backup"

    Create backup directory

    mkdir -p $BACKUP_DIR

    Database backup

    mysqldump -u root --all-databases | gzip > $BACKUP_DIR/db_$DATE.sql.gz

    File backup

    tar -czf $BACKUP_DIR/www_$DATE.tar.gz /var/www/

    Remove backups older than 30 days

    find $BACKUP_DIR -name "*.gz" -mtime +30 -delete

    Optional: sync to remote

    rsync -avz $BACKUP_DIR/ [email protected]:/offsite-backup/

    echo "Backup completed: $DATE"

    Make it executable and schedule it:

    bash
    chmod +x /usr/local/bin/backup.sh
    sudo crontab -e

    Add a daily backup at 3:00 AM:

    text
    0 3   * /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1

    Backup Schedule Recommendations

    Data TypeFrequencyRetention
    Full server snapshotWeekly4 snapshots (1 month)
    DatabaseDaily30 days
    Application filesDaily14 days
    Configuration filesAfter every change90 days
    Offsite copyWeekly12 copies (3 months)
    Adjust based on how frequently your data changes and how much data loss you can tolerate.

    Testing Your Backups

    Backups are worthless if they cannot be restored. Test regularly:

  • Restore a database on a test server to verify integrity.
  • Extract file archives to confirm they contain the expected data.
  • Restore a snapshot to a test server and verify functionality.
  • Document the restore process so anyone on your team can perform it.
  • Test at least quarterly, or more frequently for critical systems.

    What to Do Next

    • Managing Server Add-ons — Enable automated backups.
    • Complete Server Security Checklist — Full security review including backups.
    • Security at Data Mammoth — Our security approach.
    • How to Submit a Support Ticket — Get help with backup setup.

    Was this article helpful?

    ← Back to SecurityBrowse all categories →

    Still have questions?

    Contact Support →Submit a Ticket