Ask HN: Secure automated backup?
62 points| jamesknelson | 8 years ago
After seeing all the news about lost data recently, I need to get my arse into gear and get an automated backup set up properly.
I'm using a Mac, so I looked into the Time Capsule. That said, if one of the data loss scenarios is a well-written ransomeware worm, it feels like the Time Capsule is going to be just as vulnerable as my main machine.
What approach would you recommend to back up data, with both hard drive failure and ransomware in mind? I'm open to cloud based solutions if that actually makes more sense.
[+] [-] 2bluesc|8 years ago|reply
[0] https://borgbackup.readthedocs.io/en/stable/
[1] https://rclone.org
[+] [-] y4mi|8 years ago|reply
If you do, this setup doesn't help recovery after a cryptolocker. The encrypted backup would also be unusable.
[+] [-] rollcat|8 years ago|reply
At home, rsync to NAS and ZFS snapshots.
[+] [-] olalonde|8 years ago|reply
It's not exactly noob friendly though.
[+] [-] Negitivefrags|8 years ago|reply
We had an incident were we needed to restore some data from backups recently, and it took literally days to get the files we needed back. We were not downloading the entire backup, we just wanted to restore a small subset of files.
We migrated away after that.
[+] [-] mike-cardwell|8 years ago|reply
It's really easy to set up too: https://www.grepular.com/Secure_Free_Incremental_and_Instant...
[+] [-] oliwarner|8 years ago|reply
I pay Backblaze b2 about $1.60 a month for 280GB of photos. A number that doubles every few years. Today that would cost me $60 on tarsnap. That's not reasonable.
[+] [-] msh|8 years ago|reply
[+] [-] _cjk7|8 years ago|reply
- Have at least three copies of your data.
- Store the copies on two different media.
- Keep one backup copy offsite.
Personally, I'd recommend:
Copy 1: Your Mac.
Copy 2: A local NAS (my personal choice) or hard disk.
Copy 3: A remote backup, stored on a hard drive in a desk drawer at work, Backblaze, Google Drive, Amazon Cloud Drive or whatever other solution suits your needs.
In terms of software, I personally use rsync + ZFS/BTRFS snapshots (NAS - local, NAS2 - remote) and rclone (cloud). I haven't really used fancy solutions like Attic and Borg due to their need to write dead (i.e. not mountable without a performance penalty) data to local disk or SSH. No affordable storage that I've found offers this (rsync.net offers it but is too expensive).
It's getting to the point where I'm seriously considering buying an LTO6/7 tape drive though...
I'll also add because I haven't seen it elsewhere: verify your backups. A backup is pointless unless you know you can restore it. The best way to test this is by doing it. It should get to the point where you don't fear a restore. It shouldn't be painful. There should be no worry. It should be no more than an inconvenience. When something goes wrong, you don't want there to be even the smallest hint of doubt that there's something wrong with your process.
As such, I strongly recommend having an easily accessible backup. I'd go for a spare HDD sitting in a desk drawer at home before going for cloud backups just so that you can test it frequently.
[+] [-] simonhorlick|8 years ago|reply
[+] [-] goerz|8 years ago|reply
[+] [-] AdamGibbins|8 years ago|reply
Additionally, I run Backblaze and use Carbon Copy Cloner roughly once a week back to clone my entire drive to an external drive.
For personal servers I use borg with the same reduced rsync.net pricing.
[+] [-] j_s|8 years ago|reply
[+] [-] jmathai|8 years ago|reply
[1] https://medium.com/@jmathai/introducing-elodie-your-personal...
[2] https://medium.com/@jmathai/understanding-my-need-for-an-aut...
[3] https://medium.com/@jmathai/my-automated-photo-workflow-usin...
[4] https://medium.com/@jmathai/one-year-of-using-an-automated-p...
[5] https://medium.com/vantage/how-to-protect-your-photos-from-b...
[+] [-] sidmitra|8 years ago|reply
You might want to check it out. https://www.crashplan.com/en-us/features/
Also it was one of the few services that had a client that worked on Linux
[+] [-] seanlane|8 years ago|reply
[+] [-] tedmiston|8 years ago|reply
[+] [-] cube00|8 years ago|reply
[+] [-] JoshTriplett|8 years ago|reply
[+] [-] Sidnicious|8 years ago|reply
- Time Machine with offline disks: Since Time Machine supports multiple backup destinations, you can use a Time Capsule or hard drive that's always connected to your Mac, and also have one or more additional hard drives which you connect periodically and otherwise leave in a drawer.
Pros: Free, built into macOS, can browse file versions directly from many apps.
Cons: Needs ongoing manual intervention (i.e. plugging in the offline drives). Some reliability issues… but I've experienced the most problems backing up to my own SMB/AFP shares, so a Time Capsule might be OK.
- Backblaze (https://www.backblaze.com/) or CrashPlan (https://www.crashplan.com/): Both of these online backup services have $5/month unlimited plans, and both let you specify your own encryption key (in the form of an additional password), which isn't shared with the backup provider. Note: In my experience, Backblaze's client is much lighter on system resources/battery on Mac.
Pros: Inexpensive, off-site storage, low-maintenance.
Cons: Ongoing cost, requires trust (In theory, the client software could be sharing the encryption key with the company/the NSA/your nemesis).
- Arq (https://www.arqbackup.com/): Paid desktop software which can back up to many different destinations, including S3, Google Drive, or your own server via SFTP. You specify an encryption key for each destination.
Pros: Full control. Option to back up to another machine that you own (so no ongoing cost for hosting).
Cons: Up-front cost. Support is less straightforward than hosted solutions since Arq doesn't provide storage.
[+] [-] tedmiston|8 years ago|reply
[+] [-] Faaak|8 years ago|reply
I my backup server uses rsnapshot and you can only log into it with ssh + key + OTP.
[+] [-] liareye|8 years ago|reply
[+] [-] whitepoplar|8 years ago|reply
[+] [-] znpy|8 years ago|reply
[+] [-] Sami_Lehtinen|8 years ago|reply
[+] [-] SCdF|8 years ago|reply
- I have an external HDD partitioned in half: One half is for large external files that don't change much (raw files, archived data etc); and one half is a dedicated partition for Time Machine
- Time Machine backs up my laptop. If I lose my computer but not my hard drive, I can get a new one and seamlessly get the computer back to exactly how it was when I last backed it up, open tabs and all
- I also have Arq running, attached to Amazon Cloud Drive (cheapest external storage I know of). It backs up both selected portions of my laptop's disk, as well as the external hdd's non-timemachine partition (due to how TM works you can't really back it up to the cloud[1]) to "the cloud"
This leaves me with:
- Three copies of my laptop data: in the laptop, in an external hdd and in the cloud
- Two copies of larger data that can't fit, in the external hdd and in the cloud. My external HDD lives at home.
[0] Time Machine backups up once an hour, and stores backups as a simple directory structure on disk of your entire hard drive, except using hard links to old backups to avoid duplication. It keeps the last 24 hrs of hrly backups, the last 7 days of daily backups, and then weekly backups until it runs out of room.
This format simply doesn't work with the kind of backup where it scans a directory to see what's changed, because it effectively looks like you're adding hundreds of gigs of data each hour.
[+] [-] bedros|8 years ago|reply
for windows I use reflect backup https://www.macrium.com/products/home
I tried acronis backup, but the disk restore failed, absolutely horrible software. then tried reflect disk restore was very smooth.
[+] [-] feelix|8 years ago|reply
For remote backup I use Arq, but I have found that to be very buggy. I'm considering switching to rclone: https://rclone.org/
With both of those backup solutions in place I should be ready for pretty much everything.
[+] [-] zapu|8 years ago|reply
[+] [-] gtf21|8 years ago|reply
- very reasonably priced: I pay around £10 pcm for unltd storage for my whole family
- zero-knowledge encryption: I have the encryption keys, and everything is encrypted on my machine before its sent up
- relatively low bandwidth: only ships changed files (pretty standard tbh)
It's saved my bacon a few times, e.g. I've used it to rescue my sister's dissertation when she wiped her laptop thinking it was in Dropbox when it wasn't. I was amazed by how easy it was for me to rescue the file from the archive.
[+] [-] 2bluesc|8 years ago|reply
It would consume gigabytes of RAM and every year or so it'd meltdown when trying to install an update without using the system package manager.
[+] [-] 5_minutes|8 years ago|reply
[+] [-] iamcreasy|8 years ago|reply
I don't need encryption or any extraneous features. I just need the selected directories to get mirrored to a backup location.
Currently, I am using SyncToy by Microsoft, but I was looking for a cross platform solution.
[+] [-] iamcreasy|8 years ago|reply
[+] [-] satai|8 years ago|reply
I would use time machine capsule and periodically (weekly?) connect an encrypted external drive and Borg backup there. Next week a second drive, third week the first one...
Always keep one of this drive off-site.
This is just one of many options how to get reasonably safe (I use an almost this one just deja-dup instead of time machine.)
[+] [-] ottobonn|8 years ago|reply
[+] [-] brandonhall|8 years ago|reply
[+] [-] mattbillenstein|8 years ago|reply
[+] [-] pfarnsworth|8 years ago|reply