---
title: How to Set Up Automatic Backups With Duplicati and Vultr Object Storage
url: https://docs.vultr.com/how-to-set-up-automatic-backups-with-duplicati-and-vultr-object-storage
description: Learn how to create automatic backups of your important data using Duplicati and Vultr Object Storage for secure, encrypted, and cost-effective cloud storage.
publish_date: 2024-06-12T22:08:18.848226Z
last_updated: 2025-04-01T00:00:00Z
author: Francis Ndungu
header_image: https://docs.vultr.com/public/doc-assets/1817/8742d94015be8bd7.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

## Introduction

Duplicati is a free, open-source backup solution for encrypting, compressing, and storing files in the cloud. Duplicati is mainly written in C# and supports various storage protocols like SFTP and S3 compatible storage solutions like Vultr Object Storage.

You can use the Duplicate intuitive web interface to set up and schedule regular backups for your Cloud Compute instances to remote storage. Duplicate backups are fully automated and secured with solid data encryption algorithms like AES-256 and TLS/SSL protocols.

This guide walks you through setting up automatic backups with Duplicati and Vultr Object Storage on Ubuntu 22.04.

## Prerequisites

Before you begin:

* [Deploy Ubuntu 22.04 Cloud Compute instance](https://www.vultr.com/servers/ubuntu/).
* SSH to the Cloud Compute instance.
  * [Create a non-root `sudo` user account](https://docs.vultr.com/create-a-sudo-user-on-ubuntu-best-practices/) and switch to the account.
  * [Update the Cloud Compute instance](https://docs.vultr.com/how-to-update-a-vultr-cloud-server).
* [Deploy a Vultr Object Storage](https://www.vultr.com/products/object-storage/) and [copy the S3 credentials](https://docs.vultr.com/vultr-object-storage).

## Install and Configure Duplicati

Duplicati maintains a central repository where you can download the latest installation files depending on your operating system. Follow the steps below to install Duplicati.

### Install Duplicati

Install Duplicati using the Ubuntu `apt` command:

1. Navigate to the `/tmp` directory.

    ```console
    $ cd /tmp
    ```

1. Visit the [Official Duplicati Download page](https://duplicati.com/download) and get a link to download the installation file for **Debian/Ubuntu**.

1. Install the Mono dependency package.

    ```console
    $ sudo apt install mono-complete -y
    ```

1. Use the following Linux `wget` command to download the Duplicati installation package file.

    ```console
    $ wget https://updates.duplicati.com/beta/duplicati_2.0.8.1-1_all.deb
    ```

1. Install the Duplicati package.

    ```console
    $ sudo apt install ./duplicati* -y
    ```

### Configure Duplicati

Make the following configuration changes before you start using the Duplicati service:

1. Open the default Duplicati configuration file using a text editor like Nano.

    ```console
    $ sudo nano /etc/default/duplicati
    ```

1. Locate the `DAEMON_OPTS` directive.

    ```
    ...
    # Additional options that are passed to the Daemon.
    DAEMON_OPTS=""
    ```

1. Change the default value `""` to the following content. This setting allows you to access the Duplicati web interface through your server's private IP address on port `8200`.

    ```
    DAEMON_OPTS="--webservice-interface=any --webservice-port=8200 --portable-mode"
    ```

   Save and close the file.

1. Allow port `8200` through Uncomplicated Firewall (UFW) and reload the new firewall changes.

    ```console
    $ sudo ufw allow 8200
    $ sudo ufw reload
    ```

1. Start Duplicati and enable the service to start at boot.

    ```console
    $ sudo systemctl start duplicati 
    $ sudo systemctl enable duplicati
    ```

## Run Duplicati Backups

After installing Duplicati, follow the steps below to access the web interface, set up an administrator password, and schedule backup:

1. Create a new `project` directory under your home directory. In a production environment, you may skip this step and select an existing directory you want to back up.

    ```console
    $ mkdir ~/project
    ```

1. Switch to the new `~/project` directory.

    ```console
    $ cd ~/project
    ```

1. Create two sample text files under the directory.

    ```console
    $ touch test1.txt
    $ touch test2.txt
    ```

1. Open a web browser and enter the following URL. Replace `192.0.2.1` with the public IP address of your Cloud Compute instance.

    ```
    http://192.0.2.1:8200
    ```

1. Click **YES** in the dialog box that appears to set up a password.

    ![Set Duplicati Password](https://docs.vultr.com/public/doc-assets/1817/63a9059b1f457433.png)

1. Enter a new Duplicati password. Scroll down and click **OK**.

    ![Enter Duplicati Password](https://docs.vultr.com/public/doc-assets/1817/09545c3cdd0d673b.png)

1. Sign in to Duplicati on the next screen using the password.

    ![Sign in to Duplicati](https://docs.vultr.com/public/doc-assets/1817/346b8799a2f7eee4.png)

1. Click **Add backup** in the main menu, select **Configure a new backup** and click **Next>**

   ![Add a new Backup](https://docs.vultr.com/public/doc-assets/1817/f6b44d426367c8af.png)

1. Enter the following backup details and click **Next>**. That is, backup name, description, and file encryption passphrase.

   ![Add a new Backup](https://docs.vultr.com/public/doc-assets/1817/53dce5d358c9823f.png)

1. Select **S3 Compatible** as the **Storage Type**, enable the **Use SSL** checkbox, and then, enter your Vultr Object Storage credentials as follows including the bucket name. Match **Access ID** with Vultr Access Key and **Access Key** with Vultr Secret Key.
  
   ![S3 Settings](https://docs.vultr.com/public/doc-assets/1817/fc18a03a69aa1fff.png)

1. Select the source data under **Computer**. Then, locate the `project` directory you created earlier under `/home/user/` and select its content.

   ![Source Data](https://docs.vultr.com/public/doc-assets/1817/c81298d523931aec.png)

1. Configure the backup schedule. Consider running a backup job when your system is less busy. For instance, 30 minutes past midnight. Then, click **Next**.

   ![Source Data](https://docs.vultr.com/public/doc-assets/1817/dcf81b2829ec0654.png)

1. Configure the remote volume size and backup retention policy. Then, click **Save**.

    ![Configure remote volume size and backup retention policy](https://docs.vultr.com/public/doc-assets/1817/d960ce41e695aca2.png)

1. Duplicati should show the backup summary. Click **Run Now** to execute the backup job manually before the schedule starts.

    ![Duplicati Backup Job Summary](https://docs.vultr.com/public/doc-assets/1817/af57935980b5589a.png)

## Restore Backups

Duplicati allows you to restore backup files directly to the original source directory in case you accidentally delete the files. Follow the steps below to restore backups:

1. Delete the original files from the local storage.

    ```console
    $ rm ~/project/test1.txt ~/project/test2.txt
    ```

1. Ensure the local storage directory is empty.

    ```console
    $ ls -ls ~/project
    ```

    Output.

    ```
    total 0
    ```

1. Navigate to the Duplicati web interface and click **Restore** on the main menu. Then, select the backup name and Click **Next>**

    ![Restore Backups](https://docs.vultr.com/public/doc-assets/1817/a5e6ed1bdcc2beee.png)

1. Select the files that you want to restore and click Continue.

    ![Select Restoration files](https://docs.vultr.com/public/doc-assets/1817/5f69cfe2c084353d.png)

1. Select **Original location** and click **Restore**.

    ![Select Restoration path](https://docs.vultr.com/public/doc-assets/1817/cec88cc1f3a1d6ca.png)

1. Duplicati restores the files to the original source directory.

    ![Select Restoration path](https://docs.vultr.com/public/doc-assets/1817/239ba2ad37b97f36.png)

1. Review the content of the local storage directory.

    ```console
    $ ls -ls ~/project
    ```

    Output.

    ```
    0 -r--r--r-- 1 root root 0 Jun  9 19:49 test1.txt
    0 -r--r--r-- 1 root root 0 Jun  9 19:49 test2.txt
    ```

    > [!NOTE]
    > For best results, always follow the **321** backup rule to ensure data redundancy, diversity, and geographic separation:  
    > 1. Always keep three **3** of your critical data.
    > 1. Store the data copies on **2** different media.
    > 1. Keep **1** copy of your data offsite.

## Conclusion

This guide walked you through setting up automatic backups with Duplicati and Vultr Object Storage. You have installed and configured Duplicati in a Vultr Cloud Compute instance. Then, you used the Duplicati web interface to backup and restore files.
