Bobcares

DirectAdmin Backup Command Line | How To?

by | Feb 20, 2023

Read the article to find out the method to create a DirectAdmin backup using the command line. With our DirectAdmin Support Services, Bobcares help you with your DirectAdmin issues.

How to create a DirectAdmin backup using the command line?

With the DirectAdmin control panel, we can manage websites using a web browser. It is always better to keep backups as it provides a way for disaster recovery. We chose to create the backup using the command line in case the server is on its way to being fully dead, or the license has expired.

We’ve two options to create the backup, namely, full backup or single-user backup. In order to create the full backup using the command line, we must run the below code:

directadmin backup command line

If enough system resources are still available, this will create all backups in /home/admin/admin_backups backups. We can use the below code to create the backup for a particular user:

directadmin backup command line

We can use the below command to restore a single user:

directadmin backup command line

Here, user%2Eadmin%2Euser1%2Etar%2Egz is the name of the file being restored.

When creating or restoring a backup as a User, we can choose from a number of backup/restore settings. These backups, which may sometimes be referred to as site backups, are located in the directory /home/USERNAME/backups/. Checkboxes shown on the User-level Dashboard Advanced Features > Create/Restore Backups interface provide access to the following backup choices: Site Backup, E-mail, FTP, Database, and Trash.

Managing Backup Creation

If the disk usage is high, we should also make sure no more backup is being created. We can use the below code for that purpose:

1. Firstly, create a script /usr/local/directadmin/scripts/custom/user_backup_pre.sh.

2. Include the below code to the script.

directadmin backup command line

3. Type in the below code to see the list of filesystem names:

4. Now make it workable:

directadmin backup command line

[Looking for a solution to another query? We are just a click away.]

Conclusion

The article points out the way of creating a DiirectAdmin backup using the command line.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.