Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Use Cloudflare R2 Storage for Site Backup in xCloud?

In xCloud, you can easily use Cloudflare R2 storage for site backup. It is a reliable and secure option that integrates seamlessly with xCloud. Plus, it’s budget-friendly, costing at least 10% less than S3 Standard. You even get 10GB of free storage with each account, which can be shared across different buckets. After the free 10GB, you’ll only be charged for the extra storage you use.

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.

get-started-with-cloudflare

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.

crate-r2-storage-bucket

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) can set your location hint. Complete this by clicking on โ€˜Create bucket.โ€™

create-r2-storage-bucket-2

Your bucket will be completed. Now go โ€˜Settingsโ€™ option & see your bucket details. If you want copy your bucket name & S3 API somewhere else for further use.

r2-storage-bucket-details

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.

manage-r2-api-tokens

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.

create-api-token-for-r2-storage

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
crate-r2-token

***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.โ€™

login-to-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.

add-r2-as-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.โ€™

Use-Cloudflare-R2-Storage-for-Site-Backup

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.

Use-Cloudflare-R2-Storage-for-Site-Backup

4.  Configure Site Backups Settings in xCloud #

Once the integration process is done, you can move on to backup your site. As you can integrate more than one storage provider, choose one if you have multiple.  For the Remote Backup Settings, choose your Bucket.

site-backups-in-xcloud

After that, you can exclude paths if required. You will find the box below the โ€˜File Backupโ€™ field as shown below.

backup-files-with-exclude-paths

You can also choose to schedule โ€˜Automatic Backupโ€™ and โ€˜Automatic Deleteโ€™. For automatic backup, you need to select backup frequency and backup time. On the other hand, you can set a value for how many days after a backup will be deleted automatically.

make-backup-automatic-in-xcloud

This is how you can easily configure and use Cloudflare R2 storage for site backup in xCloud.

Still stuck? Contact our support team for any of your queries.

What are your feelings
Updated on May 30, 2024

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00