1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Backing up macOS/Windows/Linux with Duplicati on Swiss Backup (Swift)
This guide details how to backup files and directories of your choice using the Duplicati application via the OpenStack Swift protocol on Swiss Backup, the backup solution in an independent Swiss cloud.
Prerequisites
- have a Swiss Backup space at Infomaniak 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 supporting Openstack Swift, S3 Compatible, or SFTP. For additional help, contact the support of the software used or a partner — also read the role of the host.
Install Duplicati Software
For this:
- go to the Duplicati website: https://www.duplicati.com/
- click on the "Download Duplicati" button
- choose the version corresponding to your operating system or Linux distribution
- start the program installation, you can keep the default choices
Configure Duplicati Software
For this:
- after installation, a web page should have opened; if not, go to http://localhost:8200
- click on Add Backup then select Configure a new backup
- give a name and optionally a description to your backup plan
- enable or disable encryption and define an encryption passphrase if necessary
- in 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 below:
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
User Name: SBI-XXXXXXXX
Password: your password
Identity Name: sb_project_SBI-XXXXXXXXXX
API Key: leave empty
Container Region: leave empty - click on Test Connection and verify that your credentials are correct then click Next
- fill in the fields according to the information specific to your device (read this guide - click here) as below:
- select the folders to back up and click Next
- define your backup preferences
- it is recommended to leave the Remote volume size option at its default value
- choose your preference regarding data retention; we recommend the Smart backup retention option - a backup will then be kept for each of the last 7 days, each of the last 4 weeks, each of the last 12 months
- click on Save, you will be brought back to the home page; you can start a backup immediately by clicking on Start now next to the name of your backup or wait for the next scheduled backup
Restore a Device with Duplicati
For 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 storage 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/directory
- select your data to restore in the tree structure
- choose the location to restore 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 one
- choose whether you want 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
Fixing a 502 Bad Gateway or 401 Unauth Error
With Windows 10, connections to the Swift Infomaniak server are made with TLS1.2 while with Windows 11, it is done in TLS1.3 which generates errors. If you restrict the choice to TLS 1.2, then everything works fine.
For this:
- add the advanced option of allowed SSL versions:
- and select Tls 1 2 :