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?
isgleas ( @isgleas@lemmy.ml ) 10•18 days agoBackup? What?
Strit ( @Strit@lemmy.linuxuserspace.show ) 5•18 days agoMy systems are all on btrfs, so I make use of subvolumes and use
brkbk
to backup snapshots to other locations. a14o ( @a14o@feddit.org ) 2•18 days agoSame! This works really well.
zeca ( @zeca@lemmy.eco.br ) 4•18 days agoi do backups of my home folder with Vorta, tha uses borg in the backend. I never tried restic, but borg is the first incremental backup utility i tried that doesnt increase the backup size when i move or rename a file. I was using backintime before to backup 500gb on a 750gb drive and if I moved 300gb to a different folder, it would try to copy those 300gb again onto the backup drive and fail for lack of storage, while borg handles it beautifully.
as an offsite solution, i use syncthing to mirror my files to a pc at my fathers house that is turned on just once in a while to save power and disc longevity.
Vintor ( @Vintor@lemm.ee ) English3•18 days agoI’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.)
dihutenosa ( @dihutenosa@lemm.ee ) English3•18 days agoRsync can do incremental backups with a command-line switch and some symlink jugglery. I’m using it to back up my self-hosted stuff.
everett ( @everett@lemmy.ml ) 1•18 days agoonly drawback is that it doesn’t create differential backups
This is a big drawback because even if you don’t need to keep old versions of files, you could be replicating silent disk corruption to your backup.
suicidaleggroll ( @suicidaleggroll@lemm.ee ) English0•17 days agoIt’s not a drawback because rsync has supported incremental versioned backups for over a decade, you just have to use the --link-dest flag and add a couple lines of code around it for management.
everett ( @everett@lemmy.ml ) 0•17 days agoSure, but that’s not in their answer.
suicidaleggroll ( @suicidaleggroll@lemm.ee ) English1•17 days agoThey didn’t provide an rsync example until later in the post, the comment about not supporting differential backups is in reference to using rsync itself, which is incorrect, because rsync does support differential backups.
I agree with you that not doing differential backups is a problem, I’m simply commenting that this is not a drawback of using rsync, it’s an implementation problem on the user’s part. It would be like somebody saying “I like my Rav4, it’s just problematic because I don’t go to the grocery store with it” and someone else saying “that’s a big drawback, the grocery store has a lot of important items and you need to be able to go to it”. While true, it’s based on a faulty premise, because of course a Rav4 can go to the grocery store like any other car, it’s a non-issue to begin with. OP just needs to fix their backup script to start doing differential backups.
hallettj ( @hallettj@leminal.space ) English3•18 days agoMy conclusion after researching this a while ago is that the good options are Borg and Restic. Both give you incremental backups with cheap timewise snapshots. They are quite similar to each other, and I don’t know of a compelling reason to pick one over the other.
As far as I know, by definition, at least restic is not incremental. It is a mix of full backup and incremental backup.
djsaskdja ( @djsaskdja@reddthat.com ) English2•18 days agoThere’s nothing saved on my system I couldn’t afford to lose. All my work stuff is saved in Google Drive for better or worse. I have a few small files in a personal Proton Drive that I backup manually. I wipe my own system a few times a year and I rarely ever save anything first. Honestly very refreshing to live your life like that. Other than my cat, pretty much all my possessions could disappear tomorrow and I’d get over it pretty quickly.
poinck ( @poinck@lemm.ee ) 2•18 days agoThis looks a bit like borgbackup. It is also versioned and stores everything deduplicated, supports encryption and can be mounted using fuse.
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).
drspod ( @drspod@lemmy.ml ) 2•18 days agoIt was a while ago that I compared them so this may have changed, but one of the main differences that I saw was that borg had to backup over ssh, while restic had a storage backend for many different storage methods and APIs.
ferric_carcinization ( @ferric_carcinization@lemmy.ml ) English1•18 days agoI haven’t used either, much less benchmarked them, but the performance differences should be negligible due to the IO-bound nature of the work. Even with compression & encryption, it’s likely that either the language is fast enough or that it’s implemented in a fast language.
Still, I wouldn’t call the choice of language insignificant. IIRC, Go is strongly typed while Python isn’t. Even if type errors are rare, I would rather trust software written to be immune to them. (Same with memory safety, but both languages use garbage collection, so it’s not really relevant in this case.)
Of course, I could be wrong. Maybe one of the tools cannot fully utilize the network or disk. Perhaps one of them uses multithreaded compression while the other doesn’t. Architectual decisions made early on could also cause performance problems. I’d just rather not assume any noticeable performance differences caused by the programming language used in this case.
Sorry for the rant, this ended up being a little longer than I expected.
Also, Rust rewrite when? :P
MentalEdge ( @MentalEdge@sopuli.xyz ) 2•18 days agoI 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.
Gieselbrecht ( @Gieselbrecht@feddit.org ) 2•18 days agoI’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.
beeng ( @beeng@discuss.tchncs.de ) 2•18 days agoBorg to a NAS.
500GB of that NAS is “special” so I then rsync that to a 500GB old laptop hdd, of which is is duplicated again to another 500GB old laptop hdd.
Same 500GB rsync’d to Cloud Server.
data1701d (He/Him) ( @data1701d@startrek.website ) English2•17 days agoBorg Backup, whenever I feel like it - usually monthly.
Hamburger ( @hamburger@discuss.tchncs.de ) 2•17 days ago- Offline Backup on 2 separate HDD/SSD
- Backup on HDD within my desktop pc
- Backup offsite with restic to Hetzner Storage Box
ColdWater ( @ColdWater@lemmy.ca ) 2•17 days agoI use external drive for my important data and if my system is borked (which never happen to me) I just reinstall the OS
floquant ( @floquant@lemmy.dbzer0.com ) 1•17 days agoExternal drives are more prone to damage and failures, both because they’re more likely to be dropped/bumped/spilled on etc, and because of generally cheaper construction compared to internal drives. In the case of SSDs the difference might be negligible, but I suggest you at least make a copy on another “cold” external drive if the data is actually important
BlackEco ( @BlackEco@lemmy.blackeco.com ) 1•18 days agoMy 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.
ItTakesTwo ( @ItTakesTwo@feddit.org ) English1•18 days agoDo you create ZFS snapshots and let those be backed up to B2 via restic or do you backup different types of data, one with ZFS snapshots and one with restic?
BlackEco ( @BlackEco@lemmy.blackeco.com ) English1•18 days agoOnly restic snapshots are backed-up to B2. ZFS snapshots are for undoing mistakes, though I enabled them recently and I have yet to use them.
ItTakesTwo ( @ItTakesTwo@feddit.org ) 1•18 days agoGotcha, thanks! Similar setup to mine then.
Mio ( @Mio@feddit.nu ) 1•18 days agoTimeshift for snapshots and deja backups for files