# Site Backups In xCloud

> Configure site backups in xCloud: remote and local destinations, up to two storage providers per site, schedules, retention and Backup Now.

Site backups protect your data from accidental deletion, server issues, and cyberattacks. Regular backups help you restore your site quickly and reduce downtime.

See the [Backups feature page](/features/backups/) for what it does, who it is for and which plans include it.

Each site can back up to its own server (local) and to **up to two remote storage providers**, each with its own schedule and retention. Retention always keeps a destination's newest backup. See [Back up to two remote destinations](#back-up-to-two-remote-destinations) and [Choose a retention period](#choose-a-retention-period).

With xCloud, you get two types of backup options:

-   **Site Backup:**  
    Supports both **Remote Backup** ([**DigitalOcean**](https://www.digitalocean.com/), [**Vultr**](https://www.vultr.com/), S3-compatible providers) and **Local Backup** (stored on the same server). You can choose **full** or **incremental** backups.
-   **Server Backup:**  
    Available for **xCloud Managed, xCloud Provider and White Label Vultr servers**, and for servers on your own Vultr account. It costs an **additional 20% of the server price** on servers billed by xCloud; on a server in your own Vultr account, Vultr bills you directly. This backup covers the entire server instead of individual sites. xCloud servers that run on Leaseweb do not offer Server Backup, so the Backup menu does not appear for them.

<iframe loading="lazy" title="Everything You Need to Know About Backups on xCloud (Complete Server &amp; Site Backup Guide)" width="500" height="281" src="https://www.youtube.com/embed/ufJAXTswYCY?start=72&amp;feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>

xCloud also offers full backup and **[incremental backup](/docs/incremental-backup-in-xcloud/)** options for each. Follow this guide to learn how to configure site backups in xCloud.

## **Step 1: Open Storage Provider Page**

Before getting started, you need to select a storage provider. To do that, visit your xCloud hosting dashboard and navigate to **Backup → Backup Settings**.

![](/_landing/docs/site-backups-in-xcloud-image-42.png)

Now, click the ‘**Manage Your Storage Provider**’ from the Backup Settings. It will take you to the Storage Provider integration page.

![](/_landing/docs/site-backups-in-xcloud-image-43.png)

You can also go to ‘**My Profile**’ and navigate to **Integrations → Storage Provider** from the left navigation, as shown below.

![](/_landing/docs/site-backups-in-xcloud-image-7.gif)

## **Step 2: Choose A Storage Provider**

Now, you need to choose a storage provider for storing your backup files. Click the ‘**Add New Provider**’ button from the Storage Provider page. You will get a prompt to select a provider and input the necessary details.

_**Note**: storage providers **Contabo** and **Min.io** are currently not supported within the **xCloud** platform._

![](/_landing/docs/site-backups-in-xcloud-image-44.png)

### **DigitalOcean Spaces**

If your storage provider is DigitalOcean, select DigitalOcean Spaces from the providers list. Insert your **Bucket Name**, **Access Key ID** and **Secret Key**, and add the **Endpoint URL**. After that, hit the ‘**Submit**’ button.

![](/_landing/docs/site-backups-in-xcloud-image-8.gif)

To get **Space name**, **Access Key ID**, **Secret key** from DigitalOcean, open your account dashboard and go to ‘**Spaces Object Storage**.’ Hit the ‘**Create Spaces Bucket**‘ button to create a new bucket.

![site backups](/_landing/docs/site-backups-in-xcloud-screen-shot-2024-01-21-at-14.48.54.png)

Now, set a unique bucket name in the field that says ‘**Choose a unique Spaces Bucket name**‘ and hit the ‘**Create a Spaces Bucket**‘ button.

![site backups](/_landing/docs/site-backups-in-xcloud-screen-shot-2024-01-21-at-14.50.20.png)

Once done, navigate to **API → Spaces Keys** from the DigitalOcean dashboard. Hit the ‘**Generate New Key**’ button to generate and copy your necessary keys.

![site backups](/_landing/docs/site-backups-in-xcloud-image-8.png)

Once you are done adding the necessary information and hit the ‘**Submit**’ button, your DigitalOcean space will be integrated instantly.

![site backups](/_landing/docs/site-backups-in-xcloud-image-9.png)

### **Vultr Object Storage**

If your storage provider is Vultr, select Vultr Object Storage from the providers list. Set your Bucket Name, input **Access Key ID** and **Secret Key**, and add **Endpoint URL**. After that, hit the ‘**Submit**’ button.

![](/_landing/docs/site-backups-in-xcloud-chrome_xerhmo6efe.gif)

To get **Space name**, **Access Key ID**, **Secret key** from Vultr, open your Vultr account dashboard and navigate to **Cloud Storage → Object Storage.**

![site backups](/_landing/docs/site-backups-in-xcloud-image-11.png)

Hit the Storage Name to manage the Object Storage. Here, you will need to open the Buckets tab and create a new bucket.

![site backups](/_landing/docs/site-backups-in-xcloud-screen-shot-2024-01-21-at-14.29.00.png)

To create a new bucket, set a ‘**Bucket Name**‘ and hit the ‘**Create Bucket**‘ button at the bottom of the page.

![site backups](/_landing/docs/site-backups-in-xcloud-screen-shot-2024-01-21-at-14.30.40.png)

After creating the bucket, you will find the **Hostname, Secret Key**, and **Access key** on the ‘**Overview**‘ tab.

![site backups](/_landing/docs/site-backups-in-xcloud-screen-shot-2024-01-21-at-14.40.49.png)

After providing the necessary information, hit the ‘**Submit**’ button, the Vultr Object Storage will be integrated into xCloud.

![site backups](/_landing/docs/site-backups-in-xcloud-image-13.png)

_\[_**_Note:_** _Please make sure you have a bucket created before trying to integrate it into xCloud.\]_

## **Step 3: Configure Site Backup Setting**

Once the integration process is done, open your site and go to **Site Backup → Backup Settings**. The page has two tabs: **Remote Backup** for storage providers and **Local Backup** for the server itself.

### Back up to two remote destinations

A site can back up to **up to two remote storage providers** as well as the local destination. Each remote destination has its own schedule and its own retention, so you can, for example, keep daily backups in one bucket for 30 days and weekly backups in another bucket for 90 days.

On the **Remote Backup** tab, each destination appears as a pill showing its provider, bucket, frequency and retention. The counter on the right shows how many of the two remote destinations the site uses. Select a pill to edit that destination, then choose its **Bucket** and options below.

![The Remote Backup tab with two destination pills, Backblaze B2 site-backups-primary and Cloudflare R2 site-backups-offsite, and the 2 of 2 remote destinations counter highlighted](/_landing/docs/site-backups-in-xcloud-backup-destinations.png)

To add a second destination, select **Add another destination**, choose a different storage provider under **Bucket**, set its options and select **Save Settings**. The pill only appears while the site has fewer than two remote destinations and you have a storage provider that is not used yet.

![A site with one remote destination; the Add another destination pill is highlighted](/_landing/docs/site-backups-in-xcloud-add-destination.png)

Two destinations cannot point at the same bucket. If you pick a provider that already stores this site's backups, xCloud refuses the save, because the two destinations would delete each other's backups.

If the site has no remote destination of its own yet, the form is prefilled from your team or server backup defaults, with a note saying so. Saving creates the site's own settings.

### Choose what to back up

Next you will get two options, **‘Database Backup’** and **‘Files Backup’**. Enable either one, or keep both enabled, to back up the database and files as you prefer.

![](/_landing/docs/site-backups-in-xcloud-image-56.png)

Now, there may be files or folders that you do not want to include in your file backups. You can exclude those files from backing up. You will find the box below the ‘**File Backup**’ field, as shown below.

For example, if you’re using any media plugin to offload your Media Library to [**Amazon S3**](https://aws.amazon.com/s3/) and have versioning enabled on your bucket, there’s really no reason to include those files in your daily backups. In this case, excluding your uploads folder could be a good choice. To add just write the path into the **‘Exclude Paths’** section:

```
/files/wp-content/uploads
```

![](/_landing/docs/site-backups-in-xcloud-image-58.png)

Similarly, if you’re using Composer to manage PHP dependencies, it’s likely that you don’t want to include the root vendor directory in your backups.

```
/files/vendor
```

There are more paths like below, that you can exclude from the backup list.

```
wp-admin
wp-includes
wp-content/cache
wp-content/plugins
wp-content/updraft
```

You can just copy and paste the paths here and you are good to go with excluding specific paths that you do not want to include in the backup.

### Choose a retention period

You can also schedule **Automatic Backup** and set **Backup Retention** (formerly called Automatic Delete) for each destination. For automatic backup, select the backup frequency: **Every 12 Hours**, **Daily**, **Weekly** or **Monthly**.

Under **Backup Retention**, choose how long to keep backups in **Delete backups older than**: 3 days, 1 week, 2 weeks, 30 days, 2 months, 3 months, 6 months or 1 year. Select **Custom** to enter any number of days up to 3650.

![The Automatic Backup and Backup Retention cards; the Delete backups older than presets are highlighted, with 30 days selected](/_landing/docs/site-backups-in-xcloud-backup-retention.png)

A daily cleanup removes backups older than the retention period, but it **always keeps the newest backup** of each destination, even when that backup is older than the retention period. If backups stop running, the last good one is never aged out. If the retention period is shorter than the backup schedule, for example weekly backups with 3 days of retention, the form warns that usually only the newest backup will be kept.

Select **Save Settings** to save the destination you are editing.

## Step 4: Take Your Backup

To take a new backup of your site or to view previous backups, go to **Backup → Previous Backups.** You will see two options: Local Backup and Remote Backup for your website.

You can also view an overview of the Backup Summary and Backup Status Overview for both local and remote backups. This includes details such as Total Backup Size, File Backup Size, Database Backup Size, Backup Status, Next Backup, and more.

![](/_landing/docs/site-backups-in-xcloud-ad_4nxds4whmh7hp2koibf8rcudq-8ei7b2b_b-8vv3hwsvshw2nx-dc1s4n_cfithost7kdt-5zmoewzgbpf_m7tppw1zfdv7wzg6x6mbsgolbkzgk_l1z0fe7_-a29llbcfvtiea6xeq.png)

Go to the ‘Remote Backup’ or ‘Local Backup’ tab based on your preference, select the destination if the site has more than one, and click the ‘Backup Now’ button, then choose the ‘Full Backup’ or ‘Incremental Backup’ to create an instant backup of your site. The backup goes to the selected destination only.

![](/_landing/docs/site-backups-in-xcloud-ad_4nxc_ws2jcfp-nzvoelx_owouz5yfkgz5n_erjda2gjjuysx6cv_7gzy0zrxpl9upeyjhs95v0juatmocdpkz5thefi_qbqx-tmq-_rewew0ghonzlbxbynymi7lutvh3zlbk98ja.gif)

xCloud will take a few seconds to create a backup of your site. It will export a compressed version of your current site and an SQL file in your bucket, which can be restored automatically from xCloud or downloaded from your storage provider later.

Once done, you can see your backups here with the details and options. You can use the **‘Restore’** button to restore your site with a backup version. You can also check the backup size , date of the backup and destination at a glance of each of the backup.**_Note:_** _While deleting a site you will be asked whether you want to remove Local Backups too. We are not removing Remote Backups now while deleting a site._

![](/_landing/docs/site-backups-in-xcloud-ad_4nxeqdeaasl3ljph5uoftovqkq6s2m7usjhsubjwxaquuztpfyffe1pqvckjp2zjpjchldjnrfbpur2xa5nyqv9mkjakopjtgu2-zprtoddtozpfscqmxlnz0rc1cqfs5c6yh8ys6tq.png)

You can also add a custom note to your site backups to help keep track of why each backup was taken or to add quick notes that make it easier to find the right version when you need it most.

Simply click on the **‘Note’** section of each backup and enter your note. The note will be saved and updated instantly.

![](/_landing/docs/site-backups-in-xcloud-ad_4nxene4hork-gdjcov4gizpkxjnd_sj9luzahtgdzt7gzwvcf9igp1tu8k9o_sxf7zr0g78x8q2ndvics-rmuiezlsl5tzxjlznlzzyynfirgvtsj2re04ic24wnq2a-7roxwehni.gif)

You can also click the **‘Delete’** button to remove your backups from xCloud. To delete multiple backups, select the checkboxes beside each backup and then click Delete.

_Note: The latest full backup cannot be deleted because it is required to create a new incremental backup._ 

![](/_landing/docs/site-backups-in-xcloud-ad_4nxe0oi_i2dldi8ydhdlfzjrpwxfwi6h8bun-g8oy6w0uvtormyajpghkq7z-ghnurgxpqbjc51k3fuiternqqvtiqc_qtkwkffqjz9u9ouhdhcslqgmb4vnyou3y8zg4czrv_1i6yw.gif)

A WordPress database cleanup on the **Optimization** page can take a database backup before it deletes anything; that backup appears here as a restore point. See [How to Clean Up and Optimize Your WordPress Database in xCloud](/docs/clean-up-and-optimize-your-wordpress-database-in-xcloud/).

That is how easily you can create site backups with xCloud. Site Backup and restore both now support optional file-only, database-only, or full backups instead of always backing up both.

![](/_landing/docs/site-backups-in-xcloud-ad_4nxcai9cleyq1gd1jnwffcp3y0lb3u8gtznlmditwgjpfhzlsibls-eyzp6o1rofxtutwjjjpsrqzqbhod1yubiwmk0zy_f2-jxsbl7-reccjxyhodojias_fk1od3kvdtjn2jbnq.png)

### Switch destinations in Previous Backups

When the site has two remote destinations, the **Remote Backup** tab shows a pill for each one. Select a destination to see its backups, sizes and status. The **Settings** button opens the settings of the destination you are viewing.

![The Previous Backups page on the Remote Backup tab, with one pill per remote destination highlighted](/_landing/docs/site-backups-in-xcloud-previous-backups-destinations.png)

**Backup Now** on this page runs for the destination you have selected, so a manual backup goes to that destination only.

## Remove a backup destination

To stop backing up to a storage provider, open **Backup Settings**, select the destination's pill on the **Remote Backup** tab and select **Remove Destination**.

![The Remove this backup destination dialog with the Also delete the backups already stored there checkbox](/_landing/docs/site-backups-in-xcloud-remove-destination.png)

Choose what happens to the backups already stored there:

| Choice | What happens |
|---|---|
| Leave **Also delete the backups already stored there** unticked | Scheduled backups to that destination stop. The stored backups stay in your bucket and in the site's backup history, and they come back if you add the same provider again. |
| Tick **Also delete the backups already stored there** | xCloud deletes the stored backups from the provider, then removes the destination. While this runs, the pill shows **Removing…** and the destination cannot be edited. If the provider cannot confirm the delete, the destination comes back unchanged so nothing is lost silently. |

Select **Remove destination** to confirm.

## **Connect Any S3-Compatible Storage Provider**

In addition to the built-in providers, **xCloud supports integration with any S3-compatible storage service**. Easily connect:

-   **Amazon S3**
-   **MinIO**
-   **Wasabi**
-   **Backblaze B2**
-   **Any other S3-compatible object storage**

![](/_landing/docs/site-backups-in-xcloud-screely-1766578860000.png)

### Download S3 Storage Backup

With xCloud, you can now download S3 storage backups directly from your dashboard. Easily access and save your remote S3 storage backups hassle-free.

![](/_landing/docs/site-backups-in-xcloud-ad_4nxegtwwzjgwd4mvxftthd0kyw1mfvjzb97gqgmremz2pprojnbg9rg9chhowx_rarxqotyoyyzeov-wexycx5kivfb0rbjovuwmrvrwb7warhoclzlsske0pd76lq2ifywyighgg-q.png)

Learn how to access all site files via SFTP with the root user here: 

**_👉 [Accessing All Site Files via SFTP with Root User in xCloud](/docs/accessing-all-site-files-via-sftp-with-root-user-in-xcloud/)_**

## **Frequently Asked Questions**

### **How to Download Local Site Backup?**

Local backups are stored on the server in the following directory:

Copy

```
/root/.backup
```

These backups cannot be accessed through HTTP requests, so they are not available for direct download from the xCloud app.

To download a local site backup, you must manually access the server using SFTP and retrieve the backup files from the directory above.

If deleting sites hasn't freed up disk space, see [Where Did My Disk Space Go?](/docs/where-did-my-disk-space-go-reclaiming-space-from-local-backups-cache-and-dumps/) — local backups are a common cause, since they aren't removed unless you turn on Delete Local Backups when deleting a site.

### How many remote backup destinations can a site have?

Up to two storage providers per site, in addition to the local backup on the server. Each destination has its own schedule and retention.

### Does Backup Retention ever delete my only backup?

No. Retention never deletes the newest backup of a destination, even when it is older than the retention period, so the last good backup survives if backups stop.

### What happens to stored backups when I remove a destination?

By default they stay in your storage and in the site's backup history, and they come back if you add the same provider again. Tick **Also delete the backups already stored there** to delete them permanently.

Still stuck? Contact our [**support team**](/docs/access-built-in-support-portal-in-xcloud/) for any of your queries
