How to Backup and Restore in DirectAdmin

A backup is the most important safety net for any website. Hardware failures, accidental file deletions, plugin conflicts, hacking incidents, and botched updates can all damage or destroy your site in seconds. DirectAdmin includes a built-in backup tool that lets you create complete snapshots of your hosting account — including files, databases, email, and DNS records — and restore them whenever you need to recover.

Why Backups Matter

Even if your hosting provider runs automatic server-level backups, you should always maintain your own copies. Server backups may not be granular enough to restore a single file or database table, and they may not run frequently enough for fast-changing sites. Having your own backup file means you can restore your exact state from any point in time you chose to save.

Common scenarios where backups save the day include:

What DirectAdmin Can Back Up

DirectAdmin's backup function covers four key data categories for your hosting account:

Creating a Full Backup in DirectAdmin

  1. Log in to DirectAdmin and go to the Advanced Features section.
  2. Click on Create/Restore Backups.
  3. You will see checkboxes for each data category: Files, Databases, Emails, and DNS. Check all the items you want to include in this backup.
  4. Select the backup destination — typically your home directory (the default option stores the backup in /home/username/backups/).
  5. Click Create Backup. DirectAdmin will queue the backup job and notify you via email when it is complete.
  6. Depending on your site size, the backup may take a few minutes to several minutes to complete.

Downloading the Backup File

Once the backup is created, it will be stored as a compressed .tar.gz file in your account's backup directory. To download it to your local computer:

  1. Open the File Manager in DirectAdmin.
  2. Navigate to the backups folder in your home directory.
  3. Click on the backup file and select Download.
  4. Save the file to your local machine and store it in a secure location.

It is best practice to keep multiple backup copies in different locations — local storage, cloud storage (Google Drive, Dropbox), or an external hard drive.

Restoring from a Backup

If you need to restore your site from a backup, follow these steps:

  1. If the backup file is on your local computer, upload it back to your backups folder via FTP or File Manager.
  2. In DirectAdmin, go to Advanced Features → Create/Restore Backups.
  3. In the Restore section, you will see a list of available backup files in your backup directory.
  4. Select the backup file you want to restore from.
  5. Choose which data types to restore (Files, Databases, Email, DNS) — you can restore all or just specific components.
  6. Click Restore. DirectAdmin will overwrite the current data with the backup contents.
  7. Check your website after restoration to confirm everything is working correctly.
Backup and Restore page in DirectAdmin
Backup and Restore page in DirectAdmin
Click Create Backup (circled) to start a new backup
Click Create Backup (circled) to start a new backup

Scheduling Automatic Backups with Cron

For ongoing protection without manual intervention, you can schedule automatic backups using DirectAdmin's Cron Jobs feature. Create a cron job that triggers a backup script at regular intervals — for example, every night at 2:00 AM. Many hosting setups support a command-line backup trigger or a custom PHP/shell script that calls DirectAdmin's backup API. This ensures you always have a recent backup without remembering to do it manually.

Backup vs Snapshot

A backup in DirectAdmin creates an archive file of your data that you can download and store externally. A snapshot (if offered by your hosting provider) is a server-level point-in-time copy of the entire virtual disk, usually managed by the hypervisor. Snapshots are faster to create and restore but are not portable — you cannot download a snapshot and restore it on a different server. For migration and long-term archiving, the DirectAdmin backup file is the right choice.

The 3-2-1 Backup Strategy

The 3-2-1 rule is the industry-standard backup strategy recommended by data security professionals. It is simple to remember and provides protection against virtually every common failure scenario:

Applying 3-2-1 to a typical DirectAdmin hosting account looks like this: an automated daily backup stored on the server (copy 1), a weekly manual download to your laptop or desktop (copy 2), and a monthly upload to cloud storage (copy 3, off-site).

Testing Your Backups with Restore Drills

A backup you have never tested is a backup you cannot rely on. Files can become corrupted silently, and you may only discover the problem when you actually need to restore — which is the worst possible moment to find out. Schedule a restore drill every one to three months to verify that your backups are intact and usable:

  1. Create a test subdomain (for example, test.yourdomain.com) or use a spare hosting account as a staging environment.
  2. Upload a recent backup file to that environment and run the restore process.
  3. Verify that the website loads correctly and that the database contains the expected content.
  4. Test key functionality — logins, contact forms, product pages — to confirm the restored site behaves like the live site.
  5. Delete the test environment once the drill is complete.

Spending 30–60 minutes on a restore drill every few months is a small investment that can save many hours — or days — of recovery work if a real emergency occurs.

Always Backup Before Updates: Before updating WordPress core, plugins, PHP versions, or making any significant configuration change, create a full backup first. Even routine updates can occasionally go wrong, and having a backup from just before the update means you can recover in minutes instead of hours.

Hosting with Daily Automatic Backups

AsiaGB hosting plans include daily server-level backups plus full DirectAdmin backup tools so you always have multiple recovery points.

View Hosting Plans