Live data from Hacker News

Ask HN: How do you backup your linux system?

news.ycombinator.com

21–30 of 86 posts

Re: Ask HN: How do you backup your linux system?

#21
post #2

No workflow, we just use BackupPC ( http://backuppc.sourceforge.net/ ) - cant recommend it enough. Restores are easy, monitoring and automation on different schedules is all built in. It's really great.

Love backuppc, especially 4.X where they replace the somewhat ugly hack of using hardlinks with checksums. Recommended if you have a collection of systems, if it's just a single system I'd use rdiff-backup (if you have remote storage) or duplicity if you want to pay for remote storage (amazon, rackspace, or similar).

Re: Ask HN: How do you backup your linux system?

#22
I sync data using git-annex to a home server (atom with a couple of drives) and a hosted dedicated server. Technically not "backup" since I don't store old versions.

My work files are kept in git repos which I push to the same servers.

I use Ansible to configure my machine, so that I don't have to backup system files, just the playbooks.

Re: Ask HN: How do you backup your linux system?

#24
post #19

I don't back up the system. Drive failures are so rare nowadays that I will reinstall more often because of hardware changes. The important stuff (projects, dotfiles) I keep on Tarsnap. I also rsync my entire home directory to an external drive every other week or so. Similar for servers but I do back up /etc as well.

Why would you reinstall due to hardware changes? My Debian installation has survived the move from two laptops already without any glitches.

Re: Ask HN: How do you backup your linux system?

#25
post #19

I don't back up the system. Drive failures are so rare nowadays that I will reinstall more often because of hardware changes. The important stuff (projects, dotfiles) I keep on Tarsnap. I also rsync my entire home directory to an external drive every other week or so. Similar for servers but I do back up /etc as well.

>I also rsync my entire home directory to an external drive every other week or so.

This is what I do as well, just not quite as often. Sometimes I wonder if I should switch to something like rdiff-backup to get snapshots, but that would only really be useful if I accidentally deleted a file and didn't notice for a while, for instance, which in practice is not a serious problem.

If I had more time and inclination, I might set up a small 2-drive RAIDed NAS box, and do automated regular backups to that. But for my laptop PC, just doing regular syncs to an external HD seems to be fine for now.

Re: Ask HN: How do you backup your linux system?

#26
post #19

I don't back up the system. Drive failures are so rare nowadays that I will reinstall more often because of hardware changes. The important stuff (projects, dotfiles) I keep on Tarsnap. I also rsync my entire home directory to an external drive every other week or so. Similar for servers but I do back up /etc as well.

Why would you reinstall due to hardware changes? My Debian installation has survived the move from two laptops already without any glitches.

My installation of Ubuntu is so standard that I'm one apt install and rsync (of the home directory) away from the same result and don't have to manually configure LVM, encryption, etc.

Re: Ask HN: How do you backup your linux system?

#27

I use rdiff-backup.[1] "rdiff-backup backs up one directory to another, possibly over a network. The target directory ends up a copy of the source directory, but extra reverse diffs are stored in a special subdirectory of that target directory, so you can still recover files lost some time ago. The idea is to combine the best features of a mirror and an incremental backup. rdiff-backup also preserves subdirectories,…

Me too and I'm pretty happy with it. My retention period is 1Y for most systems.

Re: Ask HN: How do you backup your linux system?

#30
Crashplan for docs/media. As for the system, I've been meaning to set up proper automatic btrfs snapshots/rsync but haven't gotten around to it yet. Worst case scenario all the docs/media are on their own RAIDZ array, so if some weird system corruption ever happens I can just reformat/reinstall.
Post reply on HN