HDD-Housing e.U.

Restoring files over the internet (Restic, Borg, rclone, Syncthing)

This page shows how to get started when you want to restore single files or moderate amounts of data. All you need is a computer with internet access and your credentials. For details, see the documentation of the respective tool.

Tip: Practise the restore in advance, e.g. with the free test account. That way you know it works in your environment when it matters.

Restores over the internet are currently limited to about 100 Mbit/s (roughly 45 GB per hour). For large amounts of data, disaster recovery by drive is faster.

What you need in an emergency

Keep these details outside the systems you back up, e.g. printed or in a password manager:

Without the Restic password or the Borg passphrase, neither you nor we can decrypt the data.

Restic

Restic reads directly from the S3 storage. On a new computer, all you need is Restic and the details from your restic_env.sh:

source restic_env.sh
restic snapshots
restic restore latest --target /restore --include /home/user/data/documents

More: Restic documentation: Restoring from backup.

BorgBackup

Borg 2 also reads directly from the S3 storage, using the same BORG_REPO address as for backups (borg repo-list, borg extract).

Borg 1.4 cannot read from S3. Download the repository with rclone and restore as usual:

rclone copy hddhousing:bucket/borg-repo /restore/borg-repo
borg list /restore/borg-repo
cd /restore && borg extract /restore/borg-repo::archivename home/user/documents

For a few files from a large repository, you can mount the bucket with rclone mount --read-only instead. Borg then needs --bypass-lock, because it cannot create a lock file on the read-only mount.

More: Borg documentation.

rclone (e.g. Nextcloud)

Files backed up with rclone are stored 1:1 in the bucket and can be copied back directly:

rclone copy hddhousing:bucket/data /restore/data

Use rclone copy for restores, not rclone sync: sync would delete everything at the destination that is missing in the bucket.

If the web interface is enabled, you can also download single files in the browser.

Syncthing

The current state is on all connected devices anyway. Add a new computer in the web GUI at HDD-Housing and share the folder with it.

Older versions from ZFS snapshots

If a file has already been overwritten or deleted in the backup as well, there are still the ZFS snapshots. Email us at support@hdd-housing.at with the point in time you need. We will make that state available to you.