2 – Automated Backups to DigitalOcean Spaces

CyberPanel v1.7.6 and above supports automated backups to DigitalOcean Spaces. Spaces backups are configured through cloud platform. Register your self on cloud platform if you haven’t already, once registered you need to connect your server from here (Make sure you are on version 1.7.6 or above, you can visit upgrade instructions)


Step 1: Setup access to DigitalOcean Spaces

Go to DigitalOcean Apps &API section and generate new keys. Make sure you create keys under Spaces access keys.

Also create at least one space, spaces will be used to store backups. Once account is configured note down its Access key ID and Secret Access Key.


Step 2: Configure DigitalOcean Keys on Cloud Platform

To configure DigitalOcean Account on platform visit:

https://platform.cyberpanel.net/s3/<Server Name>/doHome

Replace server name with name of your server in Cloud Platform. Enter your DigitalOcean Access key ID and Secret Access Key and click Connect Account. You are now ready to create your backup plans.


Step 3: Create Backup Plan

Backup plans are starting point for your backups to DigitalOcean Spaces. Backup plan define following things:

  1. Spaces: DigitalOcean Space to use for this backup plan.
  2. Frequency: How often this backup should run (Daily | Weekly)
  3. Retention Days: How many days a backup should be kept.
  4. Domain: Websites on your CyberPanel that should be included in this backup plan.

To create backup plan visit:

https://platform.cyberpanel.net/s3/<Server Name>/manage/createBackupPlanDO

Replace server name with name of your server in Cloud Platform. Configure your plan and click Create Plan. Now depending upon your backup frequency backups will be scheduled to send to DigitalOcean space. You can also force run backup at any point in time.


Force Run Backups

Backups are usually scheduled to run daily or weekly, but you can force run them at any point in time. To force run a backup visit:

https://platform.cyberpanel.net/s3/<Server Name>/manage/listBackupPlansDO

From there you can force backup to run at current point in time.


Backup Logs

Backup job runs in background, for any backup plan you can view logs at:

https://platform.cyberpanel.net/s3/<Server Name>/plansDO/<Plan Name>

Replace Server and Plan name with Server and Backup plan name respectively.