DirectAdmin Backup and Restore: Data Recovery
Backup and restore in DirectAdmin. Create backups, automate scheduling, transfer to FTP/S3, restore accounts, disaster recovery procedures.
On this page
DirectAdmin includes powerful backup functionality: full account backups, incremental backups, scheduled automation, and remote storage. Regular backups protect against hardware failure, accidental deletion, hacking, and data corruption. This guide covers backup strategy, automation, and disaster recovery with DirectAdmin.
Backup Overview
Why backups are critical:**
- Hardware failure: Drive dies → restore from backup → back online in hours
- Accidental deletion: Admin deletes customer account → restore from backup
- Hacking: Attacker modifies files → restore clean backup
- Data corruption: Malware infects database → restore previous backup
- Compliance: GDPR, HIPAA require documented backup procedures
Backup Types
| Type | Size | Speed | Frequency |
|---|---|---|---|
| Full Backup | Large (100GB+) | Slow (2-4 hours) | Weekly |
| Incremental | Small (100-500MB) | Fast (5-15 min) | Daily |
| User Backup | Variable | Variable | Per request |
Create Backups
Manual full server backup:**
- DirectAdmin Admin Panel
- Navigate to Backup/Transfer → Backup Manager
- Click "Create Backup"
- Select items to backup:
- All user accounts
- Administrator files
- Configuration files
- Click "Generate Backup"
- Wait for completion (check Dashboard → System Info)
Backup single user account:**
- Admin Panel → Manage Users → [Username]
- Click "Backup This User"
- Choose backup type: Full or Files Only
- Download backup file via FTP or email
Reseller backing up customer accounts:**
- Reseller Panel → Manage User → [Customer]
- Click "Backup This User"
- Can only backup own customers
Automate Backups
Schedule daily automatic backups:**
- Admin Panel → Administrator Settings → Backup/Transfer
- Enable "Backup Schedule"
- Frequency: Daily at 2:00 AM
- Keep 7 backups (auto-delete old ones)
- Email notification on completion
Recommended schedule:**
Daily incremental backup at 2:00 AM (keep 7 daily)
Weekly full backup on Sunday 3:00 AM (keep 4 weekly)
Monthly full backup on 1st of month 4:00 AM (keep 12 monthly)
Remote Backup Storage
Don't keep all backups on same server—use remote storage:**
Via FTP:**
- Admin Panel → Backup/Transfer → FTP Locations
- Add FTP server details:
- Host: backup.yoursite.com
- Username: backupuser
- Password: strong-password
- Port: 21
- Test connection
- Enable "Automatic FTP Backup"
- Backups auto-transfer after completion
Via S3 (Amazon Web Services):**
- Create AWS account and S3 bucket
- Admin Panel → Backup/Transfer → S3
- Enter S3 credentials:
- Access Key
- Secret Key
- Bucket Name
- Region
- Test connection
- Enable automatic S3 backup
Restore from Backup
Restore specific user account:**
- Admin Panel → Manage Users → [Create New User] or [Overwrite Existing]
- Click "Restore user"
- Select backup file from local or remote location
- Click "Restore"
- Wait for restoration (check progress in Dashboard)
Restore full server (all users):**
- Admin Panel → Backup/Transfer → Restore
- Upload or select backup file
- Choose restore type:
- Overwrite existing accounts (danger: data loss)
- Create new accounts (safe, if space available)
- Proceed with restoration
Restore from FTP backup:**
1. Upload backup.tar.gz to server via FTP
/home/admin/admin_backups/
2. Admin Panel → Backup/Transfer → Restore from FTP
3. Select backup file
4. Proceed with restoration
Disaster Recovery
Complete server loss scenario:**
- Step 1: Provision new server with same OS and DirectAdmin version
- Step 2: Install DirectAdmin from scratch
- Step 3: Download backup from remote FTP/S3 storage
- Step 4: Restore full backup via Admin Panel
- Step 5: Verify restoration:
- Check all user accounts present
- Verify email accounts work
- Test websites load correctly
- Check database integrity
- Step 6: Point DNS to new server IP
- Step 7: Monitor for issues (check logs hourly for 24 hours)
Troubleshooting
Backup failed / incomplete:**
- Check disk space: Admin Panel → System Info → Disk Usage
- Backup needs 50%+ free space
- Check error logs: /var/log/directadmin/directadmin.log
- Restart DirectAdmin: systemctl restart directadmin
FTP backup not transferring:**
- Verify FTP credentials are correct
- Test FTP connection manually
- Check firewall allows port 21 (FTP)
- Verify FTP user permissions (write access)
Restore failing or incomplete:**
- Ensure backup file is complete and not corrupted
- Check disk space on target server
- Verify backup version matches DirectAdmin version
- Try restoring to clean (empty) server first
Missing data after restore:**
- Verify you selected correct backup file
- Check if backup was created BEFORE data loss
- Test restore on staging server to verify
Schedule quarterly restore tests on staging server to verify backups actually work. A backup that can't be restored is worthless.
Related: Backup strategy | DirectAdmin setup | Disaster recovery | Backup verification
Need DirectAdmin hosting?
DirectAdmin is available for customers who want a lightweight hosting control panel on compatible UnderHost services.





















