Duplicati Backups to DigitalOcean Spaces (s3 compatible)

Duplicati Backups to DigitalOcean Spaces (s3 compatible)

If you backup your data to the cloud you should ensure that your files are strongly encrypted. There are many solutions out there for cloud backups and some can be rather expensive. In this article, we will install and configure Duplicati for Windows to perform encrypted cloud backups to DigitalOcean Spaces.This tutorial was completed using Duplicati 2.0.2.1 on a Windows 10 machine but all the steps should also work on a for Mac and Linux PC.

Duplicati
is a free, open source, backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers. Duplicati is cross-platform and available on Windows, macOS / OSX, as well as rpm and deb packages for Linux.
DigitalOcean Spaces
is an object storage service that provides an API compatible with Amazon’s AWS S3. DO Spaces is recently out of Beta and rather economical for backups at $.02 per GB and unlimited upload bandwidth.

Provision DigitalOcean Spaces

Before we can backup to Spaces we need to head over to digitalocean.com and provision a new storage space. Because Spaces is a new service, DigitalOcean is currently offering 2 months free storage in Spaces (a $10 value). If you are new to DigitalOcean, signup with this link and you will receive a $10 credit which when combined would technically give you 4 months of FREE storage.

  1. Login to your DigitalOcean account or create one
  2. Click the Create dropdown button and choose Spacesdigitalocean-create-new-spaces
  3. Choose a name for your space, it must be globally unique across all DigitalOcean Spaces. Currently, Spaces is only available in the nyc3 region. Click the green Create a Space button.digitalocean-create-a-space
  4. Next, we need to create a Spaces access key (API token/secret), to do so click Spaces on the top menu and then click Manage Keysdigitalocean-spaces-manage-keys
  5. From the Applications & Tokens page click the Generate New Key button to the right of Spaces access keys digitalocean-spaces-generate-new-key
  6. Give your new key a descriptive Key Name and click Generate Key
    digitalocean-spaces-key-name
  7. Copy and save your Key and Secret in a safe location. Note: The key will only be presented this once and never again! digitalocean-spaces-key-secret

Now we have everything setup on the storage side we can move to installing the Duplicati backup client on your PC. Here are the important details we need to retain and plug in later.

Endpoint
nyc3.digitaloceanspaces.com
Region
nyc3
Space Name
jcbackups
API Key
SDO7OWHO34ELBXSLGODU
API Secret
nn2kDCwp0ZSFdthqWwbkRS0ZCUASwsDLcxhYgMBCQVo

Install Duplicati for Windows

  1. Open a browser to https://www.duplicati.com/download
  2. Download Duplicati 2.x for Windows
  3. Run the Executable and Install Duplicati

Duplicati installs itself as a Windows Service and the user interface is web-based and presents itself on port 8200.


Create a Cloud Backup Job in Duplicati

  1. Open a browser to http://localhost:8200/ngax/
  2. Click + Add Backup from the menu
  3. Choose Configure a new backup and click Next
    Duplicati-add-new-backup
  4. Enter a descriptive Name for your backup job, leave Encryption as AES-256 and click Generate to fill to Passphrase. Save your generated Passphrase in a safe place as you will need it to restore from backup.
  5. Notes on Encryption Methods

  6. Duplicati supports AES-256 symetrical encryption but also bundles in support for GNU Privacy Guard aka GPG encryption.

  7. From the Storage Type dropdown choose S3 Compatible
    Duplicati-backup-storage-type
  8. Enter the information for DO Spaces that we gathered earlier in this tutorial. Bucket name = Space NameDuplicati-backup-s3-dospaces
  9. Lets click the Test Connection button to see if all of our stars align. When asked to Adjust bucket name, answer No. You will also be prompted to create the folder, answer Yes. If everything was entered correctly you will see a Connection worked! message. Duplicati-backup-step2c Once you have success click Next to move on to the next setup.
  10. Choose the folders on your computer you want to backup and click Next
    Duplicati-backup-source
  11. Choose a backup schedule that works for you and click Next
    Duplicati-backup-schedule
  12. Optionaly adjust the Upload Volume Size (file chunck size) and a backup retention policy and click SaveDuplicati-backup-retention-policy

Backup Your Files

  • Now that we have created a backup job lets run it by clicking Run now. You can see the progress of the current running backup job at the top of the page. Duplicati-backup-progress
  • If we head back over to Digital Ocean we can see the backup files as they land in our storage Space. Duplicati-encrypted-backup-files-dospaces

Additional Notes

  • Tasktray Icon – You can launch Duplicati from the task tray icon.
    duplicati-tasktray-icon
  • Limiting Upload Bandwidth – Duplicati has a very powerful set of advanced settings that you can configure globally or per backup job. One of these settings is the ability to limit upload bandwidth of backup jobs.
    Duplicati-throttle-upload-setting

Thanks for following along, I hope you were successful in configuring your own encrypted cloud backups to DO Spaces. If you have questions or comments don’t hesitate to leave a comment down below.

Comments are closed.