this post was submitted on 19 Mar 2025
47 points (91.2% liked)

Linux

52422 readers
498 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I recently implemented a backup workflow for me. I heavily use restic for desktop backup and for a full system backup of my local server. It works amazingly good. I always have a versioned backup without a lot of redundant data. It is fast, encrypted and compressed.

But I wondered, how do you guys do your backups? What software do you use? How often do you do them and what workflow do you use for it?

(page 2) 13 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 week ago (4 children)

I'm curious, is there a reason why noone uses deja-dup? I use it with an external SSD on Ubuntu and (receently) Mint, where it comes pre-installed, and did not encounter Problems.

load more comments (4 replies)
[–] [email protected] 2 points 1 week ago

I keep all of my documents on a local server so all that is on any of my computers is software. So if I need to reinstall Linux I cab just do it without wording about losing anything.

[–] [email protected] 1 points 1 week ago

Nice try, mister ransonware attacker hacker!

[–] [email protected] 2 points 1 week ago

I recently switched to Kopia for my offsite backup solution.

It's apparently one of the faster options, and it can be set up so that the files of the differential backups are handled by a repository server on the offsite end, so file management doesn't need to happen over the network at a snails pace.

The result is a way to maintain frequent full backups of my nextcloud instance, with almost no downtime.

Nextcloud only goes into maintenance mode for the duration of a postgres database dump, after which the actual file system backup occurs using a temporary btrfs snapshot, containing a frozen filesystem at the time of the database dump.

[–] [email protected] 1 points 1 week ago

Timeshift for snapshots and deja backups for files

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (3 children)

My work flow is pretty similar to yours:

For my desktop and laptops: systemd timer and service that backups every 15 minutes using restic to my NAS.

For my NAS : daily backup using restic + ZFS snapshots.

All restic backups are then uploaded daily to Backblaze B2.

load more comments (3 replies)
[–] [email protected] 3 points 1 week ago

Since most of the machines I need to backup are VMs, I do it by the means of hypervisor. I'd use borg scheduled in crontab for physical ones.

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (7 children)

I've found that the easiest and most effective way to backup is with an rsync cron job. It's super easy to setup (I had no prior experience with either rsync or cron and it took me 10 minutes) and to configure. The only drawback is that it doesn't create differential backups, but the full task takes less than a minute every day so I don't consider that a problem. But do note that I only backup my home folder, not the full system.

For reference, this is the full line I use: sync -rau --delete --exclude-from='/home//.rsync-exclude' /home/ /mnt/Data/Safety/rsync-myhome

".rsync-exclude" is a file that lists all files and directories I don't want to backup, such as temp or cache folders.

(Edit: two stupid errors.)

load more comments (7 replies)
[–] [email protected] 1 points 1 week ago (2 children)

I recently bought a storagebox from Hatzner and set up my server to run borgmatic every day to backup to it.

I've also discovered that Pika Backup works really well as a "read only" graphical browser for borg repos.

load more comments (2 replies)
[–] [email protected] 1 points 1 week ago

Most of my data are on 2x16TB HDDs running an mdraid1 and then I backup it all to a usb drive with Borg Backup.
The os.qcow2 files live on my m.2 NVMe and are manually backuped to the mdraid1 before running the borg backup.
I should automate the borg backup but currently I just do it manually a few times a month.
Would also like to have two usb drives and keep one offline in another part of the house but that's another future project.

[–] [email protected] 3 points 1 week ago (1 children)

This looks a bit like borgbackup. It is also versioned and stores everything deduplicated, supports encryption and can be mounted using fuse.

[–] [email protected] 5 points 1 week ago (2 children)

Thanks for your hint towards borgbackup.

After reading the Quick Start of Borg Backup they look very similar. But as far as I can tell, borg can be encrypted and compressed while restic is always. You can mounting your backups in restic to. It also seems that restic supports more repository locations such as several cloud storages and via a special http server.

I also noticed that borg is mainly written in python while restic is written in go. That said I assume that restic is a bit faster based on the language (I have not tested that).

load more comments (2 replies)
[–] [email protected] 6 points 1 week ago (1 children)

My systems are all on btrfs, so I make use of subvolumes and use brkbk to backup snapshots to other locations.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›