How to Use Cloudflare R2 Storage for Site Backup in xCloud?
Updated November 29, 2026 · 4 min read
In xCloud, you can easily use Cloudflare R2 storage for site backup. You add it once as a storage provider, then pick it as a backup destination for any site. For current storage prices, see Cloudflare’s R2 pricing page.
Ready to set up Cloudflare R2 Storage in xCloud? Let’s dive into the step-by-step guide.
Step 1: Create A Cloudflare Account
If you don’t have a Cloudflare account already, you need to create one. Creating a Cloudflare account is so easy – all you need to do is visit Cloudflare’s website, click on the ‘Sign Up’ button & fill up all the necessary information.

Step 2: Create an R2 Storage Bucket
Once you’re signed in Cloudflare account, navigate to ‘R2’ → ‘Overview’ from the left panel of the dashboard. Now, click on the ‘Create Bucket’ as you need to create an R2 storage bucket for your site backup in xCloud.

Name your bucket and remember it for later recognition. Though it is optional (because R2 automatically places your bucket in the closest available region based on your location), you can set your location hint. Complete this by clicking on ‘Create bucket.’
Your bucket will be completed. Now go to the ‘Settings’ option & see your bucket details. If you want to copy your bucket name & S3 API somewhere else for further use.

Step 3: Get Your R2 Credentials (Access Key ID, Secret Access Key)
The next step is to get the Cloudflare R2 credentials (Access ID, Access Key) to use in xCloud.
To do so, again navigate to ‘R2’ → ‘Overview’ from the left menu, and click on ‘Manage R2 API Tokens’ from the right corner.

Now click on the ‘Create API token’ button from the right of your screen. On the resulting page, choose your Token name, select the ‘Admin Read & Write’ under the Permissions, and leave the TTL as it is ‘Forever.’ Once you set all things up, click on the ‘Create API token’ button from the bottom of the page.
Here comes the most important part. You’ll only be able to access the below screen once. Be sure to copy the below details, and keep them somewhere safe for further use.
- Token value
- Access Key ID
- Secret Access Key
- Use jurisdiction-specific endpoints for S3 clients
***Note: When using the S3 API with an R2 bucket, the region is automatically set. Specifying an empty value or “us-east-1” will also default to the correct region. Plus, they don’t provide any region name or code when creating the API.
Step 4: Configure Cloudflare R2 Storage for Site Backup in xCloud
Since you have collected everything that you need from Cloudflare end, now let’s see how you can configure Claoudflare R2 storage for site backup in xCloud.
1. Login & Access New Provider
Login to your xCloud dashboard, and navigate to ‘Team Settings’ → ‘Integrations’ → ‘Storage Provider’ & click on ‘Add New Provider.’
2. Select Cloudflare As Storage Provider
On the resulting page, click on ‘Select Provider‘ to expand the dropdown option. And select ‘Cloudflare R2‘ as your storage provider.
3. Fill Up All the Necessary Information
Now, fill in your ‘Bucket Name’, ‘Access Key ID’, ‘Secret Key’, and ‘Endpoint’ that you are supposed to save anywhere. Once everything is done, click on ‘Submit.’

If everything is okay, your Cloudflare R2 storage will be added to xCloud, you can use it for site backup. Here’s how it looks in your dashboard once it gets connected successfully.

4. Configure Site Backups Settings in xCloud
After you integrate Cloudflare R2, open the site’s Backup Settings and go to the Remote Backup tab. If the site has no remote destination yet, choose your R2 bucket under Bucket and select Save Settings. If the site already backs up to another storage provider, select Add another destination first, then choose the R2 bucket and select Save Settings. That button only shows while the site has fewer than two remote destinations. The R2 bucket now shows as a destination button on the Remote Backup tab, and the counter shows how many of the two remote destinations the site uses. See Back up to two remote destinations for destination limits, schedules and retention.
After that, you can exclude paths if required. You will find the box below the ‘File Backup’ field as shown below.

You can also choose to schedule Automatic Backup and set Backup Retention. For automatic backup, select the backup frequency and backup time. Under Backup Retention, choose how long to keep backups before they are deleted automatically.

This is how you can easily configure and use Cloudflare R2 storage for site backup in xCloud.
To set schedules, retention and a second destination for the site, see Site Backups in xCloud.
Still stuck? Contact our support team for any of your queries.