Configure and automate backup in DirectAdmin ensures that your data, including websites, databases, and email accounts, are securely backed up and easily recoverable in case of data loss.
Table of Contents
Configure and Automate Backup in DirectAdmin
Here’s a step-by-step guide on how to set up and automate backup in DirectAdmin for both individual users and resellers.
1. Manual Backup Setup (Single Domain or User Account)
Step 1: Log in to DirectAdmin
- Use your DirectAdmin credentials to log in to the control panel.
Step 2: Access the Backup Feature
- Navigate to Account Manager > Create/Restore Backups.
Step 3: Select Items to Backup
- You’ll be presented with a list of items to back up. Choose the data you wish to back up:
- Website Files: Includes all files in your home directory and
public_htmldirectory. - Databases: All MySQL databases associated with your account.
- Email Accounts and Data: Email accounts, settings, and emails.
- DNS Settings: Backup of your DNS configuration.
- FTP Accounts: FTP users and their settings.
- Website Files: Includes all files in your home directory and
Step 4: Start the Backup Process
- Once you’ve selected the items, click Create Backup.
- DirectAdmin will generate the automate backup and store it in your home directory (usually in the
/backupsdirectory).
Step 5: Download or Move the Backup
- Once the automate backup is created, you can download it to your local machine by navigating to the File Manager or FTP, or transfer it to an external storage location for safekeeping.
2. Automating Backups (For Users)
Step 1: Set up Automate Backups
- Go to Account Manager > Create/Restore Backups.
Step 2: Configure Backup Schedule
- Select the Automatic Backup option at the bottom of the page. From here, you can configure:
- Frequency: Set how often backups should occur (daily, weekly, or monthly).
- Backup Retention: Set how many backups should be retained before old ones are deleted (e.g., keep the last 5 backups).
- Time of Backup: Specify the time for the backup to run.
Step 3: Select Backup Destination
- Choose where the backups should be stored:
- Local Server: Backups will be stored on the same server.
- Remote FTP: You can back up to a remote server by specifying FTP credentials. This is a more secure option in case of server failure.
- FTP Server: Enter the FTP server details.
- Username: FTP account username.
- Password: FTP account password.
- Remote Directory: The directory on the FTP server where the backup should be stored.
Step 4: Finalize and Save
- After configuring the backup schedule and destination, save your settings. DirectAdmin will now automatically create backups based on the schedule.
3. Backup Configuration for Reseller Accounts
As a reseller, you can configure automate backups for all your users or specific accounts.
Step 1: Access the Reseller Control Panel
- Log in to the reseller section of DirectAdmin.
Step 2: Go to the Reseller Level Backup Feature
- Navigate to Reseller Tools > Manage User Backups.
Step 3: Select Users to Backup
- Choose which user accounts to back up. You can select individual users or all users under your reseller account.
Step 4: Set Backup Schedule and Items
- Choose the frequency of the backups (daily, weekly, or monthly).
- Select the items to back up for each user account:
- User-level data (website files, databases, email, etc.).
- Domain settings and DNS.
- FTP accounts.
Step 5: Configure Backup Storage Location
- Select whether to store the backups on:
- The local server.
- A remote FTP server by entering the appropriate FTP credentials and path.
Step 6: Save and Automate
- Once everything is configured, save the settings. DirectAdmin will automatically back up the selected user accounts according to the schedule.
4. Backup Configuration for Admin-Level (Full Server Backup)
For server administrators, automating full server backups is crucial to ensuring complete data protection.
Step 1: Access the Admin Panel
- Log in to DirectAdmin as the server administrator.
Step 2: Navigate to Admin Backup/Transfer
- Go to Admin Tools > Admin Backup/Transfer. This section allows you to configure backups for all user accounts, including system files, databases, and settings.
Step 3: Select Users and Data to Backup
- Choose which accounts or users to back up, including the system data. You can back up:
- User data (website files, databases, emails).
- DNS settings.
- Entire system configuration.
Step 4: Configure Backup Schedule
- Set the backup frequency (daily, weekly, or monthly) and specify how many backups should be retained.
Step 5: Select Backup Destination
- Choose to back up either to the local server or a remote FTP server. It’s highly recommended to store backups on a remote server for disaster recovery.
Step 6: Finalize Backup
- Save the configuration, and DirectAdmin will now automate backup of full server according to the schedule.
5. Restoring Backups
Restoring backups in DirectAdmin is straightforward:
Step 1: Access Restore Function
- Navigate to Create/Restore Backups.
Step 2: Select Backup File
- Choose the backup file you want to restore from the available list. If the backup is stored remotely, you’ll need to upload it or retrieve it via FTP.
Step 3: Select Items to Restore
- Select what you want to restore (files, databases, emails, etc.).
Step 4: Confirm and Restore
- Click Restore to begin the restoration process. DirectAdmin will restore the data from the selected backup.
6. Best Practices for Backup Management
- Off-Site Storage: Always store backups on an external server or storage service to protect against hardware failures or data breaches.
- Automate Backups: Automate backup processes to ensure regular backups without manual intervention.
- Test Restores: Periodically test the restore functionality to ensure your backups are working as expected.
- Backup Retention: Keep multiple copies of backups (daily, weekly, and monthly) to provide a range of restore points in case of issues.
By following these steps, you can ensure that your DirectAdmin server and user accounts are backed up securely and can be restored efficiently if needed.