On this page
Why local NAS redundancy is not offsite backup
Offsite backup means your data survives the site.
RAID protects against disk failure, not theft, fire, flooding, or ransomware that encrypts the whole NAS. That is why the 3-2-1 rule asks for one offsite copy, the one most people skip.
TrueNAS Scale: restic via script task
Create a TrueNAS Scale script task with this:
#!/bin/bash
export RESTIC_REPOSITORY="rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/"
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic backup \
/mnt/pool/critical \
/mnt/pool/documents \
--exclude="/mnt/pool/media" \
--tag truenasKeep the password in /root/.restic-pass with chmod 600, and keep the script itself at chmod 700. Runs after the first are incremental.
Retention runs with your cleanup key from one trusted machine, never from the hosts you back up. See retention on ServerCrate vaults. TrueNAS owners can follow TrueNAS offsite backup with Restic or ZFS replication, with working configs for each.
Synology NAS: using the SSH task scheduler
Enable SSH, install the restic binary, and run your script from Task Scheduler.
# Download restic binary for your architecture
# arm64 for most modern Synology
wget https://github.com/restic/restic/releases/latest/download/restic_linux_arm64.bz2
bunzip2 restic_linux_arm64.bz2
mv restic_linux_arm64 /usr/local/bin/restic
chmod +x /usr/local/bin/restic
# Initialize repository
export RESTIC_REPOSITORY="rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/"
export RESTIC_PASSWORD="your-password"
restic init
# Run first backup
restic backup /volume1/important --tag synologyWhat to back up from your NAS, and what to skip
Backing up everything offsite is often impractical, so tier it. Deduplication keeps your ServerCrate vault small and your cost predictable. Unraid users should read offsite backup for Unraid, which covers shares, appdata and the flash drive.
- Must back up offsite:Family photos and videos originals, important documents, business records, financial files, anything irreplaceable. These belong in every offsite snapshot.
- Should back up offsite:Application configs, database files, custom scripts, home automation configurations. Painful to recreate but smaller in size.
- Local backup only:Media libraries (music, downloaded films), ISO collections, content that can be re-acquired. Too large for offsite, low urgency.
- No backup needed:Transcoding cache, thumbnail cache, temp files, OS volumes. All regenerated automatically.
QNAP NAS: running restic via Container Station
QNAP's Container Station runs Docker, so you can run the restic container image on the NAS. Mount shared folders read-only and schedule it nightly (2 GB of RAM or more).
If your NAS is a QNAP, the QNAP offsite backup guide covers HBS 3, Container Station and ransomware recovery.
Pricing guidance for NAS offsite backup
For a home NAS with 50 to 200 GB of irreplaceable photos, documents and configs, Starter (250 GB, $3/month) or Standard (1 TB, $9/month) covers most setups.
A 200 GB photo library typically stores in under 220 GB with 30 days of snapshots.
NAS offsite backup questions
Further reading
Also see: Synology offsite backup