Skip to main content
Back to Category

Server Backup Options and Data Recovery Guide for REXE

REXE Technology backup options: automatic snapshots, manual backups, and application-level backup strategies. Learn how to prevent data loss and recover quickly from any incident.

Read time: 7 min General Information
backupsnapshotdata recoveryautomatic backupdata securityserver backup

Table of Contents

Introduction

Data loss is one of the most critical issues in server management. Hardware failure, software bugs, accidental deletion, or cyber attacks can all lead to data loss.

REXE Technology offers various backup options to keep your data safe.

Backup is the most important part of server management. Using a server without regular backups carries significant risk.

Backup Types

1. Automatic Snapshot Backup

Automatic snapshots take a full disk image of your server at regular intervals.

FeatureValue
FrequencyDaily
RetentionLast 3-7 snapshots
TimingNight hours (low traffic)
RestoreOne-click via panel
CostOptional add-on
Automatic Snapshot Flow:
03:00 AM → Snapshot starts
→ Disk image is taken
→ Previous snapshots enter rotation
→ Oldest snapshot deleted (FIFO)

Automatic snapshot is the easiest and most reliable backup method. It can be activated during or after server ordering.

2. Manual Snapshot

Take manual snapshots anytime through the customer panel.

Use Cases:

  • Before important updates or changes
  • Before new software installation
  • Before configuration changes
  • Creating a test environment
Manual Snapshot Steps:
1. my.rexe.tr → My Services → Server Management
2. Click the "Take Snapshot" button
3. Enter snapshot description (e.g. "Before Nginx update")
4. Confirm → Snapshot is created

When taking a manual snapshot, ensure the server is not performing intensive I/O operations. For database servers, it is recommended to flush the database before taking a snapshot.

3. Application-Level Backup

In addition to server snapshots, application-level backups are recommended:

Database Backup

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

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

# MongoDB
mongodump --out /backup/mongo_$(date +%Y%m%d)/

File Backup

hljs bash
# Compress and backup a specific directory
tar -czf /backup/web_$(date +%Y%m%d).tar.gz /var/www/

# Backup to remote server via rsync
rsync -avz /var/www/ user@backup-server:/backup/web/

Automated Backup Script

hljs bash
#!/bin/bash
# /root/backup.sh
DATE=$(date +%Y%m%d_%H%M)
BACKUP_DIR="/backup/$DATE"
mkdir -p $BACKUP_DIR

# Backup database
mysqldump -u root --all-databases > $BACKUP_DIR/db.sql

# Backup web files
tar -czf $BACKUP_DIR/web.tar.gz /var/www/

# Delete backups older than 7 days
find /backup -maxdepth 1 -type d -mtime +7 -exec rm -rf {} \;

echo "Backup completed: $BACKUP_DIR"

Automatic execution via cron:

hljs bash
# Backup every night at 02:00
0 2 * * * /root/backup.sh >> /var/log/backup.log 2>&1

Backup Plan Recommendations

Use CaseRecommended Plan
Personal websiteWeekly automatic snapshot
E-commerce siteDaily snapshot + daily DB backup
Game serverDaily snapshot + game data backup
Enterprise appDaily snapshot + hourly DB backup + remote backup
Database serverDaily snapshot + hourly incremental backup

Restore

Restore from Snapshot

  1. Go to my.rexe.tr → My Services → Server Management
  2. Navigate to the "Snapshots" section
  3. Select the snapshot to restore
  4. Click "Restore" and confirm

Snapshot restore completely replaces the server's current state. All changes after the snapshot date will be lost.

Restore from Application Backups

hljs bash
# MySQL restore
mysql -u root -p < /backup/db_20240101.sql

# File restore
tar -xzf /backup/web_20240101.tar.gz -C /

Best Practices

  • 3-2-1 Rule: 3 copies, 2 different media, 1 remote location
  • Regular testing: Periodically test restoring your backups
  • Encryption: Encrypt backups containing sensitive data
  • Monitoring: Monitor backup jobs, track failed backups
  • Documentation: Document backup and restore procedures

Making backups isn't enough — regularly test restoring them to ensure they work.