1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Backup macOS/Windows/Linux with Duplicati on Swiss Backup (Swift)
This guide details how to back up the files and directories of your choice using the Duplicati application via the OpenStack Swift protocol on Swiss Backup, the independent Swiss cloud backup solution.
Prerequisites
- own a Swiss Backup Infomaniak space with an available device quota (minimum 1) for a Cloud Backup
- add 1 device of type Cloud to obtain OpenStack Swift settings
⚠️ Swiss Backup is compatible with any application that supports OpenStack Swift, S3 Compatible, or SFTP. For additional help, contact the support of the software used or a partner — also read the host's role
Installing Duplicati Software
To do this:
- go to the Duplicati website: https://www.duplicati.com/
- click the "Download Duplicati" button
- choose the version corresponding to your operating system or Linux distribution
- launch the installation of the program, you can keep the default choices
Configuring Duplicati Software
To do this:
- after installation, a web page should have opened; if not, go to http://localhost:8200
- click on Add Backup and then select Configure a new backup
- give a name and optionally a description to your backup plan
- enable or disable encryption and set an encryption passphrase if needed
- under Storage Type select Openstack Object Storage / Swift
- fill in the fields according to the information specific to your device (read this guide - click here) as follows:
Bucket Name: default
OpenStack AuthURi: https://swiss-backupXX.infomaniak.com/identity/v3 (XX = check your Swiss Backup Manager account and replace the exact URL)
Keystone API Version: V3
Domain Name: default
Username: SBI-XXXXXXXX
Password: your password
Identity Name: sb_project_SBI-XXXXXXXXXX
API Key: leave empty
Container Region: leave empty - click on Test Connection and check that your credentials are correct, then click on Next
- fill in the fields according to the information specific to your device (read this guide - click here) as follows:
- select the folders to back up and click Next
- set your backup preferences
- it is recommended to leave the Remote Volume Size option at its default value
- choose your preference regarding data retention; the Smart Backup Retention option is recommended - this will keep one backup for each of the last 7 days, each of the last 4 weeks, and each of the last 12 months
- click on Save, you will be taken back to the homepage; you can start a backup immediately by clicking on Start Now next to your backup name or wait for the next scheduled backup
Restoring a device with Duplicati
To do this:
- open a web browser and go to http://localhost:8200
- click on the "Restore" menu on the left; if Duplicati is not configured to access your Swiss Backup space, see above
- choose the location from which you want to restore data
- choose the date of the data to restore from the Restore From dropdown menu
- you can also use the search field if you want to restore a specific file/folder
- select your data to restore from the tree structure
- choose the location for restoring the data:
- Original Location restores the data where it was during the backup
- Choose Location allows you to restore data to a different folder than the original
- choose whether to keep or not the files that already exist on your machine in case of conflict or rename the files with their last modification date
- click on Restore and wait for the process to finish
Resolving a 502 bad gateway or 401 unauth error
With Windows 10, connections to the Infomaniak Swift server are made with TLS 1.2, while with Windows 11, this is done using TLS 1.3, which generates errors. If the choice is restricted to TLS 1.2, then everything works fine.
To do this:
- add the advanced option for allowed SSL versions:
- and select Tls 1 2: