Under the hood it's basically doing that, but everything's SHA-256 checksummed so you can check its validity, and all copies of your data also sync metadata telling them who else has copies, it's easy to enforce policies that some content must have >N copies etc.
Ask HN: How do you backup your files without depending on a third party service?
31–40 of 112 posts
Re: Ask HN: How do you backup your files without depending on a third party service?
#32With this method, a virus or something like a fire that only affected one location would not be able to take out all copies of my data and, at most, I'd lose the most recently backed-up information.
It's not 100% bullet-proof, but it's good enough for my personal purposes.
Re: Ask HN: How do you backup your files without depending on a third party service?
#33Every night this system also reaches out to a remote system in my office that has an 8TB RAID-5 array. It "pushes" any changes, again using rsync, to this remote host. This time it uses the --link-dest argument to create nightly "snapshots." If a file hasn't changed, it simply gets hardlinked. This backup volume is also encrypted, and only the core file server has the key to decrypt it.
For the remote system, I have a script that runs periodically that purges backups according to my own specification. Right now it keeps unlimited yearly backups, three years of monthly backups, six months of weekly backups, and 14 days of daily backups.
Once a month I also run a script to back up the core file server to an external 8TB hard drive, again with --link-dest, creating snapshots. This hard drive is stored in a fireproof safe. It is also encrypted.
I have various levels of redundancy elsewhere, too. (Yes, RAID/redundancy is not a backup). For example, my desktop system has a RAID1 array in it.
In 2000, I installed Windows ME on my desktop system. It corrupted my hard drive somehow, and I lost all of my work prior to then. In case you can't tell, this scarred me for life, and I have worked hard to make sure it cannot happen again.
I'll add, every single storage device that I use is encrypted. Sometimes it's just with a key stored on a separate boot disk (usually an SSD). The rationale being if I ever have to RMA a disk, I don't want the manufacturer to be able to see any of my data.
On another tangent, the remote system mentioned above is actually a rather old GX260 with a SATA expansion card and 3 4TB disks. The boot disk is an ancient EIDE 40GB drive. I keep it around mostly for entertainment at this point. Here's why:
9 Power_On_Hours 0x0012 001 001 001 Old_age Always FAILING_NOW 123756
That's right, the drive has been spinning for a little over 14 years.Unfortunately I've recently hit a problem where e2fsck runs out of memory (it's a 32-bit CPU, so only 2GiB per process) checking the file system. I tried setting a scratch file, but that bombed for some reason too. So, I may finally have to upgrade the thing to a 64-bit system.
Oh well.
Re: Ask HN: How do you backup your files without depending on a third party service?
#34I had a friend in college that backed up all of his files on a flash drive but he used git rather than rsync.
Re: Ask HN: How do you backup your files without depending on a third party service?
#35While we are on the subject I can imagine a device that would be ideal for some of my clients: A small (deck of cards/paperback book) battery powered device that connects to the office wireless network and is left on the user's desk or in a drawer overnight (when network usage is low) that communicates with the office NAS and stores a backup. The next morning the user sticks it in her purse or briefcase and leaves an…
Re: Ask HN: How do you backup your files without depending on a third party service?
#36I love simple software that doesn't too much magic. For this reason, I use rsync to a btrfs volume (both local, on a USB stick, and remote over SSH). Then I take a btrfs snapshot, so I have versioned and unduplicated backups. Furthermore, rsync supports gitignore-like files, so you can control what gets and what doesn't get backuped in a very fine-grained way. Tarsnap is also a great option. For your particular use c…
If btrfs were simple software redhat/fedora wouldn't have abandoned it in favor of xfs.
Re: Ask HN: How do you backup your files without depending on a third party service?
#37Re: Ask HN: How do you backup your files without depending on a third party service?
#38You can buy USB3 M.2 SSD enclosures for ~$20. They are larger than normal flash drives at about 5" long but still reasonably pocketable and much higher performance than normal flash drives. Drop in a 1TB SSD for ~$200 and you're good to go. I had a friend in college that backed up all of his files on a flash drive but he used git rather than rsync.
O_o ...For some reason, my mental model of SSD rates was stuck in 2014 at $0.50/GB. As I type this, my laptop is busy moving a VM image over to the NAS to free up some space on my 256 GB SSD.
But no, according to https://pcpartpicker.com/trends/price/internal-hard-drive/ and https://pcpartpicker.com/products/internal-hard-drive/, you can indeed find SSDs at $0.20/GB (the low end being currently dominated by Crucial MX500 drives at $0.18/GB). Looks like it's long past time to upgrade!
Re: Ask HN: How do you backup your files without depending on a third party service?
#39Re: Ask HN: How do you backup your files without depending on a third party service?
#40* "Syncthing" for keeping multiple copies of the current files, across devices in different locations, that will never malfunction at the same time. This is usually enough. * "Back in Time" for keeping older file versions in external hard drives. The two were chosen mainly because they have decent GUIs, both support diffs, and the backups can be viewed using nothing but a file explorer.
Edit: Granted, time machine provides a MUCH more 'slick' interface