Skip to content

How to Backup Data to Cloudflare's R2 Object Storage using Aws S3

1. Log in to Cloudflare and create a bucket, such as kerntest22

alt text

Remember the Bucket name you enteredalt text

2. Create API Tokens

alt textalt text

Please select: Admin Read & Write There is currently no specified bucket

3. Copy API Tokens

alt text

Please copy the following information and save it. You need to use it to configure Aws S3

4. Configure Aws S3 in aaPanel

Refer to

alt text

  • secret_id is Access Key ID
  • secret_key is Secret Access Key
  • Bucket is Bucket name
  • endPoint is https://xxxxxxxxxxxxxxxxxx.r2.cloudflarestorage.com

Please change it to your own

5. Create a Cron task backup website/database/directory

alt text

6. Check whether it can run normally

alt text