1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Swiss Backup: backing up a Linux server with rClone
This guide explains how to back up a server equipped with the Linux distribution of your choice using the Swiss Backup solution by Infomaniak.
1. Adding a "Linux/Windows Server" type device
It is first necessary to add a Linux/Windows Server type device before being able to configure the backup.
2. Configuring server backup with rClone
- Install the rClone app via the package manager of your distribution
- Download the rClone file received via email when the device was added
- Place the file in the ~/.rclone.conf.config/rclone/ directory or place the contents of the file at the end of the existing ~/.rclone.conf.config/rclone/rclone.conf file (in debian stretch, this file is found in the following location: ~/.rclone.conf)
- Execute the rclone config command to check that the configuration has gone through
- Launch the backup using rclone sync/local/path project_name:default
If necessary, you can find the login information in your Manager.
3. Example of rClone configuration
type = swift
user = SBI-AB123456
key = [password]
auth(1) = https ://swiss-backup02.infomaniak.com/identity/v3
domain = default
tenant = sb_project_SBI-AB123456
tenant_domain = default
region = RegionOne
Note (1): if your Swiss Backup device was made before October 2020, you will need to use the following URL for authorisation: https ://swiss-backup.infomaniak.com/identity/v3
You can edit [sb_project_SBI-AB123456] with the indication of your choice for greater simplicity.
For example, the indication [swissbackup] will yield:
4. Start a backup or restoration
It is possible to start a backup with the following command:
rclone sync /local/folder sb_project_SBI-AB123456:remote/folder
It is possible to start a restoration with the following command:
rclone sync sb_project_SBI-AB123456:remote/folder /local/folder