What do you use to back up local files from Linux to external hard drive?
I have been using rsnapshot, but maybe there are better solutions out there?
Does anyone have an experience with btrfs and snapshots? Do you trust it?

#Linux #techsupport #fedihelp #helpdesk #help #Support #Backup #softwarerecommendation #btrfs #OpenSource #question

@mirekdlugosz
Timeshift and yes, it saved my bacon more times than im willing to confess

@mirekdlugosz I am a big fan of restic at the moment. Encrypted backup repo by default. Validity checks. Easy to learn cli for most basic tasks.

I just use a few one liners for backup, consistency checking, mounting and restore.

@mirekdlugosz borg + pika if on gnome

@mirekdlugosz What's your use case regarding btrfs snapshots?

I would recommend other methods like rsnapshot, restic, borg, etc. rather than filesystem snapshots in most cases.

@blasfisq
I donโ€™t have one. The question is what pros and cons of such thing would be.

I imagine doing rsync from laptop to external drive, and then doing btrfs snapshots on external to go back in time (like recovering old version of file etc).

@mirekdlugosz a pro argument would be space efficient and fast local filesystem snapshotting to use them to recover e.g. from mistakes like accidently deleting files, corruption, broken system upgrades and so on. Those snapshots are not backups.

Visone already mentioned a solution to combine btrfs snapshots - on the same drive - with other tools to replicate copies of the snapshots to external storage locations. @visone

@mirekdlugosz 2/2 con argument would be that you need more tools, more manual consistency checking, separate tooling for encryption and so on.

Easy read on btrfs
https://itsfoss.com/btrfs/

For the mentioned use case I'd recommend restic in combination with the 3-2-1-1-0 strategy if possible: https://www.techtarget.com/searchdatabackup/tip/How-the-3-2-1-1-0-backup-rule-reflects-modern-needs

What is Btrfs in Linux? What are its Advantages Over Ext4?

Btrfs is the talk of the Linux town. And if you curious about this filesystem, read about its features and pros and cons over other filesystems like ext4.

It's FOSS
@mirekdlugosz I use restic and it's been working super well for me. Supports over sftp and other things like B2.
@mirekdlugosz
Btrfs' snapshots aren't backups but can be used like that. I make tarballs from those snapshots and storage them outside the system.
To backup personal data I like rsync

@mirekdlugosz I don't do external drive backups. My main reason for it is: if I get infected with ransomware (doubt, but who knows) then the external drive will also be fcked.

I use Borgbackup via https://www.borgbase.com/
They have a thing setup so that even if you have the api key to backup to borgbase, you can't mass delete all the backups. Only if you login can you do that.

They make an easy to use backup client as well: https://vorta.borgbase.com/
Or one they sponsor: https://gitlab.gnome.org/World/pika-backup

BorgBase - Simple and Secure Hosting for your Borg and Restic Repositories

Simple and Secure Hosting for your Borg and Restic Repositories. From $2/month or $5/TB/month.

BorgBase - Simple and Secure Backup Hosting
@mirekdlugosz no issues with btrfs after all these years
@mirekdlugosz so far as copying a btrfs snapshot to another drive, btrfs send/receive makes it easy
@mirekdlugosz https://github.com/digint/btrbk <-- works beautifully for me and was pretty easy to set up. It is vital to set up your btrfs volume correctly right from the start (root as extra subvolume!) to get the most out of it.
GitHub - digint/btrbk: Tool for creating snapshots and remote backups of btrfs subvolumes

Tool for creating snapshots and remote backups of btrfs subvolumes - digint/btrbk

GitHub
@mirekdlugosz I use #restic. But someone told me, that borg is great, too.