I use external drives to backup everything on my Synology NAS. My data easily fits on a single large drive so:
- I put two large drives in my NAS and use raid1 (mirrored disks)
- The entire backup (or even multiple backups) can fit on an external drive.
I worry about threats to my data:
- Hard drive failures
- Physical damage (like dropping my NAS and backup drives)
- Accidentally deleting important files and not noticing until the deletions have propogated to the backups
Raid0 and mutiple external drives really helps with drive failures. I'd say I get a drive failure every year or two. When it is in the NAS, I just replace the drive and let the NAS re-sync. When it is on a backup drive, I just stop using that drive.
Because of the risk of physical damage (even the risk of my house burning down!), I take a backup drive off-site every month. There is always one backup in the safety deposit box in my bank. I never have all the backups in the same physical location.
To combat accidental deletion of files:
- I use multilple backup drives
- I use drives big enough to hold multiple backups each
- Every night I overwrite at most a single backup
- I have enough backups so that I should always have a copy of my data at least a couple weeks old
To help with this, I wrote a script that does my backups. Here is the way it works:
- Does sanity checks
- External drive is mounted
- The NAS has at least the expected number of files on it
- No other backup job is currently running
- There is enough space to make a backup
- Examines all external drives that are attached
- Chooses an external drive on which to make a backup
- The first drive with available space
- Or overwrite a backup that did not complete last time
- Or overwrite a backup where there are several from the same day
- Or overwrite the oldest backup
- Creates a directory for the backup named by today's date
- Uses rsync to create the backup
- Creates a log file
- Prints a summary from the log file
For example, here is the listing of backups when three different external drives are attached to my NAS. Each drive has space for two backups, so I have 6 different backups available just on the drives that are connected:
Available backups: 2020-01-27: complete files=458557:820GB trans=260:7GB runtime=34m:3KB/s disk=BAK2T04 mount=/volumeUSB1/usbshare dev=/dev/sdq1 2020-01-28: complete files=458590:820GB trans=1075:8GB runtime=14m:9KB/s disk=BAK2T04 mount=/volumeUSB1/usbshare dev=/dev/sdq1 2020-01-29: complete files=458614:820GB trans=427787:820GB runtime=17h:13KB/s disk=BAK2T05 mount=/volumeUSB3/usbshare dev=/dev/sdr1 2020-01-30: complete files=458621:820GB trans=251996:304GB runtime=3h:28KB/s disk=BAK2T05 mount=/volumeUSB3/usbshare dev=/dev/sdr1 2020-01-31: complete files=458550:820GB trans=427723:820GB runtime=19h:12KB/s disk=BAK2T06 mount=/volumeSATA/satashare dev=/dev/sdc1 2020-02-01: complete files=458555:820GB trans=427727:820GB runtime=20h:11KB/s disk=BAK2T06 mount=/volumeSATA/satashare dev=/dev/sdc1
You can download my script and use it yourself:
Use ssh/scp to put it on your NAS and add it to a cron job.
Here is the full hardware list that I recommend. Click any item to buy it on Amazon.