3 ms·
Automated Portion: Every morning at 7:30am, a cron job runs to rsync my main computer's /home directory to my NAS that is sitting in a closet. The NAS has two d
by hkhanna 11y ago
Automated Portion: Every morning at 7:30am, a cron job runs to rsync my main computer's /home directory to my NAS that is sitting in a closet. The NAS has two drives that are mirrored to guard against hard drive failure. Every Saturday morning, a homebrewed script will separately check to make sure all my backups are current and will email me to advise me that everything is current and OK. If there is a problem, it will tell me which days are missing.
Manual Portion: Once every couple months, I backup the portion of my /home directory that is not heavy media like video to a large USB stick, which I keep at my office.
I don't love this setup, particularly because (1) an offsite backup does not happen automatically, (2) my video is not backed up offsite, and (3) it is not resilient to natural disasters in my area, since both my home and office are within a half-mile of each other in downtown New York City.
Moreover, because I keep my NAS mounted even when no backup is in progress, my backups are vulnerable to malicious code executed even at the non-superuser level. For example, a while back there was a bug in some gaming software (Steam?) where a script executed that would rm -rf /* because of a badly written shell script. If that had happened to me, it would wipe my /home directory and my NAS backup.
Eventually, I'd like to set up a Raspberry Pi running in another area of the country and have rsync push daily backups over ssh to that offsite computer.