3 ms·
Better answer: have backups. Fancy filesystems may save you if you use their features properly, but are also hell to do deep data recovery on when something doe
by marcan_42 6y ago
Better answer: have backups. Fancy filesystems may save you if you use their features properly, but are also hell to do deep data recovery on when something does go wrong. And they are also buggier simply by being more complex.
- mrighele 6y agoYou should always have backups, but for this specific issue I think that snapshots are much better since you can run them more often (I do a snapshot of my system every hour) and it is probably easier/faster to recover a file from a snapshot than a backup
- lmm 6y agoYou might be right in the general case, but ZFS is extremely mature and reliable; frankly I trust it more than ext4 at this point.
- bestboy 6y agoUsing ZFS is no replacement for backups. Still, this would have been a non-issue on a ZFS system: /var/recordings $ ll .zfs/snapshot/ total 72 drwxr-x---+ 7 root root 7 Apr 9 2019 0003/ drwxr-x---+ 7 root root 7 Apr 9 2019 auto-2020-11-26_00-00/ drwxr-x---+ 7 root root 7 Apr 9 2019 auto-2020-11-27_00-00/ drwxr-x---+ 7 root root 7 Apr 9 2019 auto-2020-11-28_00-00/ drwxr-x---+ 7 root root 7 Apr 9 2019 auto-2020-11-29_00-00/ drwxr-x---+ 7 root root 7 Apr 9 2019 manual-2020-10-05/ /var/recordings $ cp .zfs/snapshot/auto-2020-11-28_00-00/recording-16679.flv recording-16679.flv (every directory/dataset contains an invisible .zfs directory "mounting" the snapshots of the dataset)
- fuzxi 6y agoThe file he overwrote was the backup, haha. >Given that we already consider it to just be a backup, we currently don’t make any further backups of this data.