1. Home
  2. Site
  3. Backup
  4. Cloudflare R2

Cloudflare R2

Cloudflare R2 is a secure, fast, and cost-efficient object storage service from Cloudflare. Designed to be a direct competitor to Amazon S3, R2 offers integrated benefits with Cloudflare’s existing suite of products, including edge caching. By using Cloudflare R2 with FlyWP:

  • Cost-Efficiency: Often cheaper than traditional storage providers.
  • Performance: Integrated with Cloudflare’s network for faster content delivery.
  • Security: Built with Cloudflare’s renowned security infrastructure.

Creating an R2 Bucket

  1. Log into your Cloudflare dashboard.
  2. Navigate to the R2 section.
  3. Click on the “Create Bucket” button.
  4. Follow the prompts to name and configure your bucket.

Getting R2 Credentials

R2 Overview Page
  • On the left sidebar, locate the R2 menu.
  • Note down your ‘Account ID’ displayed prominently on the page.
  • The “Create Bucket” button is present for future bucket creations.

API Tokens

Screenshot of API tokens page
  1. This page lists all your available tokens.
  2. To create a new token, click on the “Create Token” button.
  1. Input a descriptive name for the token.
  2. Ensure you provide the necessary permissions, Admin Read & Write permission is required for the backup to work.

Access & Secret Key:

  1. Once the token is created, Cloudflare will provide both an ‘Access Key ID‘ and ‘Secret Access Key‘.
  2. Important: Note these down securely. Cloudflare will not show the secret key again for security reasons.

Adding Cloudflare R2 as a Provider in FlyWP

  1. Within FlyWP, navigate to ‘Backup Providers‘.
  2. Select ‘Add New Provider‘ and choose ‘Cloudflare R2‘ from the dropdown.
  3. Input the following:
    • Cloudflare Account ID: This is the Account ID you noted from the R2 overview page.
    • Access Key ID: Enter the ‘Access Key ID’ obtained during the token creation.
    • Secret Access Key: Input the ‘Secret Access Key’ you saved earlier.
  4. Confirm and save your settings.

With Cloudflare R2 now integrated into FlyWP, you can easily set up and manage backups stored on R2, leveraging its benefits for your website.

Note: It’s essential always to keep your Access Key ID and especially your Secret Access Key confidential. Never share them openly or store them in insecure locations.

Was this article helpful to you? Yes 1 No

How can we help?