Backup
3-2-1 Backup Strategy
3 Copies, 2 media volumes (truenas-a and truenas-b), 1 off-site (truenas-c)
off-site
Off-site backup is a replication task from the truenas-master to truenas-c, it is connected via VPN using wireguard.
Configure wireguard connection after boot on truenas-c
- Create a
wg0.confin/data/wg0.confonly this directory is persistent. -
Add the following content (see bitwarden for full config including keys)
-
Go to
/ui/system/initshutdownand configure the init command as follow:- Type: Command
- Description: wireguard up at boot
- When: Post Init
- Command/Script:
/usr/bin/wg-quick up /data/wg0.conf - Enabled: Yes