Backup & Restore Guide

Regular backups are essential for protecting your data. This guide covers the different backup methods available.

Types of Backups

Type What's Included When
Import Backup Provider's codes and portals Automatic before bulk import
VPS Backup Full system (DB, files, configs) Manual via script

Automatic Import Backups

Before every bulk import, the system automatically:

🔒 Safety First: You can import with confidence knowing your data is backed up.

VPS Backup Script

For server administrators, a comprehensive backup script is available:

# Navigate to app directory
cd /app

# Run backup
bash vps-backup-system.sh

# Backup location
/root/iptv-backups/

What VPS Backup Includes

Restoring from Backup

VPS Restore

Each backup includes a restore script:

# Navigate to backup folder
cd /root/iptv-backups/backup_TIMESTAMP/

# Run restore
bash restore.sh
⚠️ Warning: Restoring will overwrite current data. Make sure you want to restore before proceeding.

Backup Best Practices

Automated Backup Schedule

Set up automatic backups using cron:

# Edit crontab
crontab -e

# Add daily backup at 3 AM
0 3 * * * /app/vps-backup-system.sh >> /var/log/backup.log 2>&1

Checking Backup Status

View your backups:

# List all backups
ls -la /root/iptv-backups/

# Check backup size
du -sh /root/iptv-backups/*
← Maintenance Mode Troubleshooting →