I’m currently trying to connect to a Swift storage by the Swiss company Infomaniak.
However I’m always getting the following error.
Fatal: unable to open repo at swift:fileserver:/default/Backup 1/restic: conn.Authenticate: Bad Request
What I’m trying to achieve is the following:
- Backup my servers with restic to my NAS.
- Sync the restic repo to the Swift storage as an offsite backup.
- Access the restic repo in the Swift storage from my notebook or any other device I have access to after an incident.
Step one and two are working and I’m able to access the restic repository when I’m mounting it locally with rclone first but that seems to me a bit inefficient.
One thing I can’t figure out is the container name, what could that be?
The rclone config looks like this:
[swissbackup]
type = swift
env_auth = false
user = SBI-XXX
key = password
auth = https://swiss-backup02.infomaniak.com/identity/v3
tenant = sb_project_SBI-XXX
tenant_domain = default
domain = default
region = RegionOne
storage_url =
auth_version =
And the script to test restic like this:
#!/bin/bash
export RESTIC_REPOSITORY="swift:fileserver:/default/Backup 1/restic"
export RESTIC_PASSWORD=password
export OS_AUTH_URL="https://swiss-backup02.infomaniak.com/identity/v3"
export OS_USERNAME="SBI-XXX"
export OS_PASSWORD="password"
export OS_PROJECT_NAME="sb_project_SBI-XXX"
export OS_REGION_NAME="RegionOne"
#restic mount /mnt/swissbackup
restic snapshots --host host