Backup solutions for desktop Linux

Ok, so most of us here probably run Linux on some machine. But what is your recommended backup solution? If there’s an HD crash or my laptop is stolen, I would like to restore all of my /home/user/ directory, including my dot/config files.

I’ve seen some people backup config to Github. Or Gnome has Apps/DejaDup – GNOME Wiki Archive, which seems very basic.

I’m curious what is your current solution for backing up your Linux laptop or workstation? External drive? NAS? Remote backup?

Lastly, what are my beginner to intermediate options for remote nightly backups of Linux desktop no matter the distro? (in case I don’t stick with one distro)

Thanks.

I’m sure you’ll get better answers from others, but here’s one that worked well long ago. I haven’t gotten to the point of needing to back up yet recently, so this is from decades old memory. Search “rsync time machine”, and you’ll see links like this and this that offer solutions/inspirations.

The idea is to set up a separate linux computer on your network that is your storage device. Then, on the linux computer you want to backup, run rsync in a shell script. Rsync is a file transfer command with an option to use hard links on the destination (storage) side of a backup scheme. This lets you make frequent backups (I have done every hour at times) that are very efficient space wise. You can get to the backup by browsing the file system on the storage system. To restore use similar rsync commands from the storage computer to the backed up computer.

Rsync is amazing, but its option count is immense, and may look intimidating. However, the options play well together, and you can pick and choose the ones you need. Rsync is the most robust transfer program I’ve used, and this backup scheme worked over poor/intermittent network connections.

Good luck!

I user overgrive and along with timeshift. Overgrive isn’t free but it’s also not costly.

timeshift - is used to backup your system and system files, not your home folder, and allows you to be able to roll back your system when something changes

For backing up your home dir, have a look at rsnapshot or overdrive if you upload to Google drive. Dropbox also has a Linux app for syncing the home directory.

My earlier rsync experience was with normal files. Does timeshift handle device files, or does one need to do a base OS install to put the timeshift backup on top of? I didn’t see mention of this on the timeshift page, but maybe I missed it.

I will have to look at our rsnapshot. I have my Docker folder in my home folder. So I have been looking for a way to back that up. It’s fairly large though about a few gigs. I will see if Google drive works first, if not I will try rsnapshot. Thanks for the recommendation. :+1:

Thanks everyone. I’m going to test a couple of these out to find out what I’m most comfortable with!

Kudos to you for recognizing the fact that you SHOULD have a viable current backup. A couple of suggestions to consider:

  1. I have a 4TB USB HDD plugged in and Timeshift configured to backup automatically with a differential daily and a full weekly.
  2. I’ve also been playing with ReaR (Relax and Recover) which can create a backup to be used for a bare-metal restore. (www.relax-and-recover.org).

Gook luck and please advise what you end up with?
B

I have used a few solutions in my time, some FOSS and some commercial, but ultimately the best one I have found so far is

HashBackup

It is CLI Only, but this reduces the dependencies we all love to hate. In fact the downloads available are a self contained executable for Linux, BSD or MacOS.

The basics are very simple and once set up (via cron, etc.) it is very easy to forget!

It can use multiple destinations, in addition to a local ‘cache’, on a multitude of platforms, including B2, which I use.

It has proven to be robust, reliable (even with an extremely poor internet connection) and relatively efficient. After the first backup the deltas are obviously much quicker.

For comparison, I have tried Restic, Rclone, Duplicat, Dupitii and a few others, but none are as easy to use or as reliable.

Given this is free and the developer is extremely approachable and amiable I can this of nothing better for protected valuable data.

The documentation at the above site is highly recommended and worth a read simply to understand some best practices.

;-}

Welcome to our community. I’ve not used HashBackup yet; thanks for sharing this! I will also add it to our tech wiki.

I’m lazy, I have DejaDup going to my One Cloud account. I only backup the stuff in certain parts of my /Home/ dir the rest can just die until I do a fresh install. :face_with_monocle: Most of the time I mis-configured something and needed to reinstall anyways.

I went with DejaDup and Timeshift

Thanks guys

What I’ve done. Which I’m sure others have also, is whenever I run apt upgrade my system takes a timeshift shapshot:

image

If anything goes wrong after updates it makes recovery easier.

I also enabled snapshots and I’m using it if my desired distribution supports it. :wink:

Furthermore I create backups of my system disk with “Clonezilla” regularly. If something breaks I’m able to go back.

Also I’m using file backup (“Syncovery”) to backup all of my files to my Nextcloud or pCloud storage.

Clonezilla is a beast. :smiling_face_with_sunglasses: and Kudos for not being a slave to paid cloud services like me.

I still need to add “proper” NAS setup to my home lab to fully free myself from paid cloud services. That’s been on my to-do list for a while now.

The majority of my paid cloud storage is images. Last year I found out about Immich for the first time:

Should be rewarding to finally get that in place.

I’m using paid cloud services. For pCloud I did a one-time payment some years ago, and my Nextcloud is hosted by Hetzner, a German hosting service. :wink:

I would be happy to host my own cloud on my NAS but I didn’t realize that. My NAS is too old, and I’m not sure how to get my own cloud secure. This is a project that I want to start in the next few years.

Yes, taking control of our data is always a big win. Definitely a goal here also.

I use something like this