At that point you might be looking at ZFS instead!
This is my thinking - and the reason my Timeshift mounts itâs folder from another drive. Having a brand new 860 Evo go wiry on me, I can throw in an old SSD, do a quick fresh install from USB and then restore the âsnapshotâ.
When you duplicate a text file youâre working on, surely thatâs just a snapshot (copy) and a backup would involve saving to /mnt/backup or /mnt/cloud as a defence when you spill coffee on your laptop.
This is why I just go with rsync. At the same time Iâm monitoring comments about BTRFS, Iâve a 6 year old 2TB Western Digital which actually seems nicer and quieter running on BTRFS which now holds my replaceable, but replaceable media (TV series).
Thatâs more in the domain of version control systems, git
being a prominent exampleâŚ
Or course for controlled, persistent and deliberate versioning a tool like git has to be used.
This is more a convenient layer of automated, temporary, uncontrolled versioning; it covers uncommitted sketchbook work-in-progress and local files in git-exclude. Itâs a fallback that I need maybe once a month, but then itâs really nice to have.
There are some arguments floating around about ext4 being rather heavy on SSDâs⌠and my SanDisk certainly looks roughâŚ
I replaced it with a 960 EVO which died in a couple of days, and has now been replaced.
So in terms of SSD life itâs an interesting topic for me.
If your SSD dies in a couple of days instead of lasting longer than your computer there is something very wrong with it and you should be able to get your money back by warranty.
When you copy a file, I think it can be loosely considered a backup because you have a second copy of the data. It isnât a very robust backup and it doesnât protect you from much but it is a backup for that one file.
That being said, that isnât an analogy that applies to a filesystem snapshot. A snapshot is not a second copy of the data. It is just references to the same copy of the data so a snapshot can never be considered a backup.
Here is another question:
It is very difficult to find up-to-date info on these things but given that both SUSE and Fedora has switched to Btrfs as default regardless of if you use and SSD or not for / âŚ
All of the things below have been argued in 2020, most things you find about Btrfs online unfortunately is written around 2014 or earlier which makes it irrelevant for modern SSDs.
-
According to half the internet, having COW enabled on Btrfs is lierally murdering your SSD much quicker than any other file system for home users.
-
At the same time having COW enabled is mandatory for snapshots. Sot as Suse and Fedora auto-sets it up of corse COW is enabled even on SSDs.
-
What exactly DOES the âautodetect spinning disc or SSDâ setting for Btrfs DO? I mean what changes does automatically get turned on / off if it detects itâs on an SSD?
-
According to the other half of the Internet having Compression enabled in Btrfs kills your SSD. Accoring to the first half f the Internet itâs the opposite, compression literally halves the number of writes on it. Which is it?
This is semantics again: If that snapshot is indeed a snapshot, aka I can go back to it from a later state, then it is as much a backup as manually copying a text file and change the name on it.
However, it does not become a âbackupâ until the data on the disc is changed. Aka when the snapshot is taken it is NOT a backup until it is sufficiently âbehindâ so that itâs content differs from what comes later.
It isnât semantics, it is not a second copy of the data. If a block becomes corrupt(which isnât that uncommon), it corrupts both the snapshot and the current data.
The problem with this logic is it is only a âbackupâ for those changed blocks, not for everything else on the disk/volume. Those blocks might not even be entire files. They could be portions of files.
If you globally disable COW, there wouldnât be much reason to run btrfs in the first place.
Thereâs no point to explain further if he doesnât even understand features that btrfs offers. Windows users seems to be more conservative in accepting new ideas, I am sure he is still thinking that snapshots are exactly the same as back up. He mentioned about Timeshift in one of the post, I remember it has 2 different methods of making back up, 1 is using btrfs/snapshots while another is othersfs/snapshots. It could have confused him for that reason.
In my experience thatâs according to the half of the internet that doesnât use btrfs. If that would be a problem we would hear about Suse installations failing left and right.
Itâs optimizing low level filesystem internals like allocating memory or service work on file trees.
I only heard that it would increase the life span, because less data is written. But imho thatâs a rather esoteric side effect for home users, since big home data blobs like audio and video usually arenât compressed.
SO there is a benefit to have Btrfs with compression on / , like Suse used to do it?
Yes.
In truth, there is almost always some benefit to enabling it. Even in the case of /home
where it may choose to not compress big sections of data, it will compress what it can and not compress what isnât worth it.
Itâs a snapshot.
I think part of this is that i am just lazy, I am sitting here reading thru tutorials and wikis and it just feels⌠like a huge step backwards. Not in functionality, but in management.
It all seems extremely hands on, and thatâs what i mean when I say itâs not for the average home user. (it doesnât help that the official documentation is only aimed at servers, assuming you are a network admin at a company and working with huge data clusers etc).
And on the other end it seems everyone on /reddit etc that advocates for it are extreme user cases (while claiming to âaverage usersâ), either âparanoidâ (taking 6 monthly, 12 weekly, 7 daily and 12 hourly snapshots on top of the auto-created one at very update theyâve set up ) or also having odd user cases like âOh I just bundled 9 old discarded HDDs in an array as a home made NAS using Btrfs, itâs so easy!â
Even setting it up like Suse used to do it seems⌠annoying.
What I want is, if I am going to use snapshots at all:
Auto-created snapshots of my / when an update is made. Maybe⌠three of them? I donât see me need more, period (1), so they need to also automatically be deleted, easy to find, and preferably everything can be set up in a GUI.
(1) because Arch already have a package cache for rollbacks of individual packages AND I take several actual backups (not snapshots) with Timeshift to an external HDD that includes both the complete / and /home partitons.
Sure. Some example directory data from my current machine (compression zstd level 1) using compsize:
# /usr/share
Type Perc Disk Usage Uncompressed Referenced
TOTAL 56% 3.4G 6.1G 6.1G
# /usr/bin
Type Perc Disk Usage Uncompressed Referenced
TOTAL 54% 938M 1.6G 1.6G
# My source dir in home
Type Perc Disk Usage Uncompressed Referenced
TOTAL 64% 2.6G 4.1G 4.1G
# But my home music
Type Perc Disk Usage Uncompressed Referenced
TOTAL 99% 8.7G 8.7G 8.7G
So overall a few gigs here and there. Is that worthwhile if you have 200 GB free anyway? Probably not. Is it nice benefit on a 256 GB laptop? Maybe.
(Btw I have to wonder how many of Fedoraâs and Suseâs users that actually do any of this at all, and not just click ânext next nextâ at install and then never use any features of the btrfs file systems at all. My guess 65-70% of the user base).
Must be you lucky day âŚ
This Wiki article provides exactly what you want; check the bottom of the article or see here if you donât want encryption.
[Edit] Btw, with a simple trick you could get Timeshift to run in btrfs-mode to create btrfs-snapshots and also create rsync backups. But youâre probably not interested, seeing that this would involve some manual intervention and scripting .
It looks interesting, but is it using timeshift? Because I need that for my Rsync backups to a second drive, and as far as I know timeshift canât keep track of two different backup schemes?
Anyway, I appreciate all the input, but I think I have concluded that for my own user case, btrfs is not worth it on any level other than very much maybe increasing the life slightly on my / SSD compared to Ext4.
The amount of manual hands on to make it work seems far far greater than the benefits I would get out of it, and I am not in the mood to try to implement it just because I can.
(Marking this as âsolutionâ, because it is my final conclusion: btrfs is just not worth the hassle for me, specifically as long as you canât set it up directly in the installer, like in Suse, and Calamares simply donât have that functionality).
Note:I have since switched to Btrfs on my / BUT it required a completely redone partition scheme to be working as intended so this would still be the âsolutionâ to my original question.