DirectAdmin Admin Backup Restore: Step-by-Step
In this article
To restore an admin-level backup in DirectAdmin, log in as the admin user, open the Admin Tools section, choose the backup/restore tool, point it at the backup file, and select the users and data you want to bring back. The exact menu labels vary slightly between DirectAdmin versions and skins, so if a label differs from what you see here, look for the closest match under the admin-level tools. This guide walks through the whole process, from checking the backup file to verifying that websites, email, and databases are working again after the restore.
What You'll Need
- Admin-level login credentials for DirectAdmin (the reseller or user login usually cannot run a full admin restore).
- The backup file itself, typically a
.tar.gzarchive created by DirectAdmin's admin backup feature, stored somewhere the server can reach (local disk, remote FTP, or another path you can browse to). - Enough free disk space on the server for both the backup archive and the extracted data. A safe rule is at least twice the size of the backup file.
- SSH or file manager access, in case the backup needs to be uploaded or moved into the expected directory first.
- A short maintenance window. Restoring users overwrites existing data for those users, so plan for a period when changes to the affected sites can be paused.
Step-by-Step
- Confirm what the backup contains. Admin-level backups can include multiple users, and each user's files, databases, email accounts, and DNS records. Before restoring, check the archive name and, if possible, list its contents so you know which users it covers. Restoring a backup that contains a user you did not intend to touch will overwrite that user's current data.
- Put the backup file where DirectAdmin can find it. The admin backup tool looks in the admin backup directory by default. If you downloaded the archive from elsewhere, upload it back into that directory using the file manager or SCP. Keep the original filename intact; DirectAdmin uses naming patterns to identify the archive type.
- Log in as admin. Use the admin account, not a reseller or user account. The restore options for multiple users only appear at the admin level.
- Open the backup/restore tool. In the admin-level navigation, find the section that contains the backup and restore features (often labeled as Admin Tools or a similar group depending on the skin). Inside it, choose the restore option rather than the create-backup option.
- Select the backup source. Choose the location where the archive sits, for example the local admin backup directory or a remote storage location if one has been configured. Then pick the specific backup file from the list.
- Choose the users to restore. The tool reads the archive and shows the users it contains. Select only the users you actually want to restore. If you are recovering a single account, deselect the rest to avoid overwriting unrelated sites.
- Pick the data types. Decide whether to restore everything (files, databases, email, DNS) or only selected components. Restoring files without databases, or the reverse, is a common way to end up with a half-working site, so unless you have a specific reason, restore all components for the users you selected.
- Start the restore and watch the output. The restore runs as a background process and shows a log or progress output. Do not close the browser tab or navigate away while it is running. Large backups with many email accounts can take a while.
- Check the result messages. When it finishes, read the output for errors. A successful restore usually reports each user and each component. Any failed component is listed separately; note it before moving on.
- Verify the restored accounts. Log in as each restored user (or use the admin file manager) and check that the website files are present, the database responds, and email accounts exist. Test the site in a browser and send a test email if mail was part of the backup.
- Rebuild or reload services if needed. If the site does not respond immediately, reload the web server and database service from the admin service monitor, or restart them from SSH. In most cases DirectAdmin handles this automatically, but a manual reload resolves stale configuration.
Common Mistakes
- Restoring as the wrong user level. Reseller and user accounts cannot run a multi-user admin restore. If the restore menu looks empty or limited, you are probably not logged in as admin.
- Overwriting live data unintentionally. Restoring a user replaces their current files and databases with the backup contents. Anything created after the backup was taken is lost unless you exported it first.
- Restoring only part of the data. Files without databases, or databases without email, produce a site that looks restored but is not. Restore all components unless you are deliberately recovering a single piece.
- Not enough disk space. The restore extracts the archive in addition to keeping it, so a nearly full disk causes failures partway through. Check free space before starting.
- Using a backup from a different DirectAdmin version or a different control panel. Archives from another panel or a much older DirectAdmin release may not restore cleanly. Check the output log for skipped components.
Tips
- Take a fresh backup of the current state before restoring an old one. That gives you a rollback point if the restore overwrites something you needed.
- Restore one user first as a test, verify the site, then restore the rest. It is much easier to spot a problem with one account than with twenty.
- Keep the original backup archive until you have confirmed everything works. Do not delete it immediately after the restore reports success.
- If the backup is large, run the restore during low-traffic hours so email delivery and website availability are less affected.
- Record the exact filename and location of the backup you used. If you need to repeat the restore, you will not have to hunt for it again.
Troubleshooting
If the restore does not go to plan, work through these checks in order, simplest first.
- The backup file does not appear in the list. Confirm the archive is in the directory the restore tool reads from and that the filename matches the expected pattern. Move or re-upload it if necessary, then refresh the page.
- The restore starts but fails partway. Check free disk space first. Then read the log for the specific component that failed; a single failed database or email account is usually a permissions or disk issue rather than a corrupt archive.
- The site loads but shows errors. Confirm the database was restored and that the site's configuration file points to the correct database name and user. If the database restore was skipped, re-run the restore for that user with databases selected.
- Email accounts are missing. Check whether email was included in the restore selection. If it was, confirm the mail service is running and that the account's mail directory exists.
- The restore reports success but the old site still appears. Clear the site cache and reload the web server. If a caching layer or CDN sits in front of the site, purge it.
- Permissions look wrong after restore. Use DirectAdmin's permission reset option for the affected user, or ask your host to correct ownership. Do not change ownership manually unless you know the correct user and group.
Frequently Asked Questions
Can I restore a single user from an admin backup?
Yes. The admin restore tool lists the users inside the archive, and you can select only the ones you want. This is the safest way to recover one account without touching the others.
Does restoring a backup delete the user's current data?
It overwrites the user's files, databases, and email with the contents of the backup. Anything created after the backup was taken is replaced, so export or back up the current state first if you might need it.
Can I restore a backup created on a different server?
Usually yes, as long as it is a DirectAdmin admin backup and the destination server has enough space and a compatible DirectAdmin version. Check the restore log for components that were skipped.
Why is the restore option missing from my panel?
The multi-user restore is an admin-level feature. If you are logged in as a reseller or user, the option will not be available. Log in with the admin account.
How long does a restore take?
It depends on the size of the backup and the number of users. Small single-site backups finish quickly; large archives with many email accounts take longer. Leave the browser tab open until the process reports completion.
What if the restore fails because of disk space?
Free up space first, then run the restore again. The archive and the extracted data both need room, so aim for at least twice the backup size in free space before starting.