6.6.6 Remote backup in aaPanel control panel

aaPanel banner

The aaPanel server control panel supports creating backup copies to remote file storages. To do this, you will need to install and configure the FTP Storage plugin from the built-in package manager called App Store.

Setting up backup creation

Let’s look at creating such a task using the example of creating backup copies to your Cloud Storage:

Important: all highlighted variables in the examples must be replaced with your information.

1. Log in to your aaPanel control panel using the account available to you.

2. Go to the App Store section and find FTP Storage in the search for available applications. Install it using the Install button.

aaPanel Backup 1

3. After successful installation, click Setting to the right of the installed FTP Storage plugin.

aaPanel Backup 2

4. In the open form you will need to specify the parameters for accessing your remote server:

aaPanel Backup 3

Where:

  • Use SFTP – leave blank to use FTP if there is no need to use an alternative.
  • Host – address of the remote host, for example server.keepdata.thehost.ua. The address of your Cloud Storage host can be found as follows.
  • UserName – active FTP user on the remote storage. In our example, ftp_user, created inside the KeepData panel.
  • Password – password of this FTP user.
  • Storage location – path to the directory (based on the root directory for the FTP user), where the backup will be written. In our example, it is /backup/.

4. Now you can start creating backups. In aaPanel you can directly create them as a CRON task in the Cron tab. Go there and create a new task of the Backup Site type. Set up its schedule, list of sites and number of local copies. In the Backup to column, be sure to change Local disk to FTP Storage to transfer the backup according to the previously specified data to the remote server.

aaPanel Backup 4

5. After creating the first task, create a second task of the Backup Database type to backup our databases. The settings are similar – make sure the FTP Storage setting is active:

aaPanel Backup 5

Additionally: if you need to back up not a site or a database, but a separate directory, aaPanel also has a Backup Directory task type, as well as a Shell Script task type, in which you can run any script you want.

6. Done! You have scheduled backups configured for your Cloud Storage or any other remote server you specified. If necessary, the Cron task can always be run outside the schedule by clicking Execute in the Cron tab.