CyberPanel v1.7.5 and above supports automated backups to AWS S3. S3 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.5 or above, you can visit upgrade instructions)
Step 1: Setup user in AWS IAM Console
Go to AWS IAM Console and create new user, it is recommended that you only give this user access to AWS API (S3 related operations). Make sure this user have correct permissions otherwise CyberPanel will fail to upload backups to your buckets.
Also create at least one bucket, buckets will be used to store backups. Once account is configured note down its Access key ID and Secret Access Key.
Step 2: Configure AWS Account on Cloud Platform
To configure AWS Account on platform visit:
Replace server name with name of your server in Cloud Platform. Enter your AWS 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 S3. Backup plan define following things:
- Bucket: AWS Bucket to use for this backup plan.
- Frequency: How often this backup should run (Daily | Weekly)
- Retention Days: How many days a backup should be kept.
- Domain: Websites on your CyberPanel that should be included in this backup plan.
To create backup plan visit:
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 S3 storage. 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:
From there you can force backup to run at current point in time.
Backup job runs in background, for any backup plan you can view logs at:
https://platform.cyberpanel.net/s3/<Server Name>/plans/<Plan Name>
Replace Server and Plan name with Server and Backup plan name respectively.