I currently use btrfs on almost all my server and offline backup drives mainly because of the ability to transparently compress files to save space. But apparently btrfs can get corrupted if it unexpectedly loses power? Is there a more robust and corruption resistant filesystem that you’d recommend that also has the ability to compress files?
Corruption on power loss is something that journaling should prevent and modern filesystems do that. So btrfs should be as safe as other modern filesystems.
Edit: Btrfs does no journaling, it implements resilience with another mechanism, namely Copy on write.
It should, but apparently it isn’t, at least not reliably.
It’s perfectly reliable. You only need caution when using RAID5 and RAID6 as these features are still in the experimental phase.
I’ve lost power with it many times, none of my BTRFS partitions have been corrupted so far.