Restic and its companion UI Backrest already allow you to back up to many different locations. However, getting it setup to back up from one Unraid NAS to another might not be straight forward. Here I will go into details on the steps I have used to to make it work.
The goals of this setup are:
- Sender will use Backrest while receiver will use Tailvault app in Unraid.
- Both apps will have Tailscale integration enabled, and connectivity will be via Tailscale.
Tailvault is a very simple Alpine container that enables SFTP. However, Restic doesn’t support SFTP with password, hence the need for additional setup for key pairs between the 2 containers.
- Generate a keypair with PuTTYgen, choose EdDSA and Ed25519
- Install TailVault app in the Community Store with the following modifications:
- Open TailVault container log and login to Tailscale using the link in log
- Open appdata/TailVault and download ssh_host_ed25519_key.pub
- Install Backrest app in the Community Store with Tailscale enabled
- Open Backrest container log and login to Tailscale using the link in log
- Create known_hosts file on your computer with the following content:
- Upload id_ed25519 from step 1 and known_hosts from step 5 to appdata/backrest
- Select id_ed25519, click Permissions, change Group and Other to No Access
- Edit backrest app in Unraid’s Docker and add the following:
- Open backrest URL
- Add repo. For Repository URL, use
sftp:<username set in step 2>@<tailvault domain from Tailscale>:/backups
References
Guide from backrest: Using SSH (SFTP) Remotes with Docker Compose · Backrest