Your NAS holds photos, documents, and media that would be hard or impossible to replace. A second copy on an external drive protects you when a NAS disk fails, a file gets deleted by mistake, or ransomware locks your shares. This guide shows you how to set up automatic backups nas external drive copies on a regular schedule, so the backup runs even when you forget about it.
That is not the same as RAID. RAID keeps your NAS running when one disk dies, but it does not help when you delete a folder or when the whole NAS box fails. A separate drive with its own copy does.
Choose the Drive and Filesystem
Buy a drive larger than the data you plan to back up. If your NAS holds 4 TB today, buy an 8 TB drive.
Pick a desktop drive with its own power supply for a backup that stays plugged in. A portable bus-powered drive suits rotation better, where you plug it in, run the backup, and unplug it. Check the drive’s SMART health before you trust it with your only second copy.
The filesystem decides which systems can read the drive. For TrueNAS and Synology, ext4 is the safe choice: it handles large files, keeps Linux permissions, and works well with rsync. If you need to plug the drive into a Windows PC in an emergency, exFAT works, but it does not keep Linux permissions. NTFS is readable on most NAS systems, but write support varies, so use it only when you must move the drive between a NAS and Windows.
Format the drive on the NAS itself when you can. Label it clearly, for example BACKUP-01.
Connect the Drive to Your NAS
Plug the drive into a USB 3 port on the NAS. USB 2 works, but the first full backup of several terabytes takes far longer.
On a Linux-based NAS, list the attached disks with:
lsblk -o NAME,SIZE,MODEL,MOUNTPOINT
blkid
Note the drive’s UUID. Mount by UUID, not by device name, because device names can change after a reboot.
On TrueNAS, check in Storage that the USB drive appears, and do not add it to your main storage pool. On Synology, check Control Panel, then External Devices. Give the drive a fixed mount point, such as /mnt/backup-usb, so your backup script works after every reboot.
Set Up Automatic Backups NAS External Drive With Rsync
Rsync is the workhorse for a nas backup external drive job. After the first run it copies only changed files, and it can delete files from the backup that you deleted from the source. Test with a small folder first.
A simple rsync backup command looks like this:
rsync -aH --delete --numeric-ids --info=progress2
/mnt/tank/share/ /mnt/backup-usb/share/
The -a flag keeps permissions, timestamps, and folder structure. The --delete flag removes files from the backup that no longer exist in the source. Leave it out until you have tested the command and you are sure the paths are correct. One swapped path with --delete can wipe the wrong folder.
For a repeatable job, put the command in a script:
#!/bin/sh
if ! mountpoint -q /mnt/backup-usb; then
echo "Backup drive is not mounted. Stopping."
exit 1
fi
rsync -aH --delete --numeric-ids
/mnt/tank/share/ /mnt/backup-usb/share/
>> /var/log/nas-backup.log 2>&1
echo "Backup finished: $(date)" >> /var/log/nas-backup.log
Save it as /root/nas-backup.sh, make it executable with chmod +x /root/nas-backup.sh, and run it once by hand. Check the log and open a few copied files. Only schedule it after that manual run works.
If you want a nas backup setup that covers more than one share, add one rsync line per share. If your NAS runs Docker, back up the volumes too, and the steps for backing up Docker volumes automatically show how to copy them without losing data.
Schedule the Backup on TrueNAS and Synology
On TrueNAS Scale, the cleanest way to automate nas backups is a cron job or a built-in rsync task. Go to System Settings, then Advanced, then Cron Jobs, and add a job that runs your script. A weekly run suits most home setups; run it daily if files change every day. Pick a quiet time, such as 02:00.
A cron line that runs the script every day at 02:00 looks like this:
0 2 * * * /root/nas-backup.sh
TrueNAS also has a Rsync Task screen under Data Protection, which asks for the source, destination, and schedule. If you are still planning your build, read the guide on how to set up TrueNAS Scale as a home NAS first so the pool, shares, and users are in place before you add backup tasks.
On Synology, open Control Panel, then Task Scheduler, and create a task that runs your script. Set it to email you when it fails. Synology also ships Hyper Backup, which backs up shared folders to USB with versioning. Use Hyper Backup when you want several old versions of a file; use rsync when you want a plain copy you can read on any machine.
The comparison of Synology vs TrueNAS vs a DIY NAS covers the trade-offs in price, software, and upkeep. Whatever scheduler you use, log every run. A job that fails silently gives you false confidence. Read the log weekly until the job has run cleanly for a month.
Verify That You Can Restore
A backup you have never tested is only a hope. Pick three files at random from the backup drive: one document, one photo, and one video. Copy them to a test folder and open each one.
Once a month, restore one full folder to a temporary location and compare it with the original:
diff -rq /mnt/tank/share/photos/ /mnt/backup-usb/share/photos/ | head -50
du -sh /mnt/tank/share/photos/ /mnt/backup-usb/share/photos/
A small difference is normal if files changed while the backup ran. A large difference means the job did not finish or the source path was wrong. Also test the case where the NAS itself is gone: unplug the backup drive, plug it into a PC, and confirm you can read the files.
Rotate Drives and Keep One Offsite
One external drive protects you from disk failure and deletion. It does not protect you from fire, flood, or theft, because the backup sits next to the NAS.
Buy a second drive, label it BACKUP-02, and swap the drives once a week or once a month. Keep the spare at another location: your office or a family member’s house. Each swap gives you an offsite copy at most one rotation old. Rotation also limits ransomware damage: if malware encrypts the NAS and the plugged-in drive, the offsite drive still holds a clean copy.
This follows the same idea as the 3-2-1 backup rule for servers: three copies of your data, on two different types of storage, with one copy offsite. Your NAS is copy one, the plugged-in drive is copy two, and the rotated drive offsite is copy three. If you want versioned backups with old file versions kept for months, the comparison of Duplicati vs Restic vs Kopia explains which tool fits a home NAS setup.
Mistakes to Avoid
- Leaving the only backup drive plugged in all the time. A drive that is always attached shares the same risks as the NAS: power surges, theft, and ransomware. Rotate it or keep a second drive offsite.
- Using –delete before testing. Test the rsync command on a small folder first. Confirm the source and destination paths, then add –delete.
- Backing up the wrong folder. Check that the source path is the live share, not an old snapshot or an empty mount point. A job that copies an empty folder can delete your good backup.
- Ignoring the logs. A full drive, a disconnected USB cable, or a changed path will stop the job. Read the log after each failure and fix the cause.
- Never testing a restore. A backup that has never been restored is unproven. Test a few files after the first run and a full folder every month.
- Buying a drive that is too small. Data grows. Leave at least 25 percent free space on the backup drive so new files fit and the job does not fail halfway.
- Storing the backup drive on top of the NAS. Heat and vibration shorten a drive’s life. Keep it in a cool spot with airflow.
Set the job up once and test it. Check the log each week, swap the rotation drive on time, and test a restore every month.