Quantcast
Channel: macosxhints.com storage device tips
Viewing all articles
Browse latest Browse all 21

Offsite daily encrypted backup via Dropbox

$
0
0
Using some shell scripting + crontab + Dropbox, I've created a method for doing a daily encrypted backup of folders, lasting for 31 days.

Why bother? It's important to back up data because eventually all drives will die. Incremental backups are important because it allows you to track changes from day to day. The solution I have here isn't perfect, but it allows for a few folders to be saved for 30 days before they are overwritten. The benefit of this is that if a huge error is caught 5 days after it was made, then you can revert to the file that was saved 6 days ago. Following is the script that does the job. I named this file backup.sh and had it run every day at 3am, when nobody is likely to be editing or messing with files. The result of the code is a disk image (.dmg) that will be password protected, and will have the name of backup[1-31].dmg (based on the current date). You'll need to edit the first few variable to match your setup. ...

Viewing all articles
Browse latest Browse all 21

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>