6.6.6 Remote backup in aaPanel control panel
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.
3. After successful installation, click Setting to the right of the installed FTP Storage plugin.
4. In the open form you will need to specify the parameters for accessing your remote server:
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.
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:
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.