Sending K3s backups to the NAS instead of the same disk
A local backup would die with the NVMe drive, so the backups go straight to the NAS over SMB.
Today’s step was the backup foundation for the management K3s cluster, before installing any apps.
The AI agent’s first proposal was a script that writes backups to a local folder on the server, with the NAS to be wired in later.
I asked where the backups would actually live. A backup on the same single NVMe drive as K3s dies with that drive.
I have a Western Digital My Cloud EX2 Ultra NAS. It isn’t on Tailscale, because it’s a consumer appliance that doesn’t run it. But it’s on the same home LAN as the server, and nc -zv from the server reached both SMB (445) and NFS (2049).
So the backups go straight to the NAS: Restic for encrypted snapshots, with rclone talking SMB underneath.
One trap before installing. Ubuntu’s apt package for rclone was version 1.60.1, from 2022. rclone only added its native SMB backend in 1.63, and versions before 1.75.0 have a published security advisory. I installed Restic and sqlite3 from apt, and the official rclone 1.75.1 package, checked against its SHA-256.
Next is a restore drill, to prove the backup actually brings something back.
Recipes written later from this work: