Live data from Hacker News

Ask HN: How do you backup your linux system?

news.ycombinator.com

41–50 of 86 posts

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

#42
Perhaps someone could offer a related suggestion. At the moment, I use rsync to backup files to external hard drives. One of the difficulties that I run into is that some folders I want to mirror exactly between my computer and the backup. Other folders I want to only add files, but not delete, to the backup. Still others, like git repositories, I'd like to bundle rather than backup the directory itself. Finally, I make redundant backups to multiple external hard drives, so it would be nice to replay the same backup procedure to multiple devices. Does anyone have a workflow that accomplishes this or something similar?

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

#44
Main home "server" is an Ubuntu system with a couple 2TB HDDs. It runs various services for IoT type stuff, has a few samba shares, houses my private git repositories, backups from Raspberry Pi security cameras, etc. It is backed up to the cloud using a headless Crashplan install. I use git to store dotfiles, /etc/ config files, scripts, and such, in addition to normal programming projects.

We back up photos from our iOS devices to this server using an app called PhotoSync. I also have an instance of the Google Photos Desktop Uploader running in a docker container using x11vnc / wine to mirror the photos to Google Photos (c'mon Google, why isn't there an official Linux client???). I'm really paranoid about losing family photos. I even update an offsite backup every few weeks using a portable HDD I keep at the office.

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

#45
Something similar to [0] but using restic. For machines that have enough uplink, restic does its thing to S3 as well.

Sidenote: I was using Time Machine on MacOS but since I upgraded to 10.13, APFS disks are mandatorily excluded by the OS (apparently as a workaround to to some bug), so restic it is too.

[0]: (warning: jwz) https://www.jwz.org/doc/backups.html

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

#46

1. Place desired data to back up on a drive (which may be network attached). 2. Clone said drive to an external drive. Detach and lock it in a water/fireproof box when not in use. 3. Swap external drive with another that is stored off site every week or two. 4. Swap with yet another off site external drive less often (a few months).

No test to ensure proper copy?

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

#47
- Dirvish[0] for local backups (nightly)

- Crashplan[1] for cloud backups (also nightly; crashplan can backup continuously but I don't do that)

Pretty happy with it, though dirvish takes a little bit of manual setup. Never had to resort to the cloud backups yet.

[0] http://www.dirvish.org/

[1] https://www.crashplan.com/

Post reply on HN