38 ms·
> I see people talking about snapshotting, but I haven’t found a need for it. I already have snapshots in my restic backup solution. They’re not especially conv
by hddherman 4y ago
> I see people talking about snapshotting, but I haven’t found a need for it. I already have snapshots in my restic backup solution. They’re not especially convenient, but I’ve been using restic for two years, and I only recall needing to recover data from a snapshot once.
The ease at which you can revert mistakes using ZFS snapshots is much better compared to restic. You can pretty much navigate to the correct snapshot on your live filesystem and restore whatever you need to restore.
It also makes backups easier as you can just send the snapshots to the backup device (another server or external storage device).
- linsomniac 4y agoThis. I'm always going into my backup server and looking in the ".zfs/snapshots" directory to look at the history of how files have changed over the backups. Love restic, but the ZFS snapshots are fantastic.
- eminence32 4y agoI have personally been saved by ZFS snapshots (multiple times!) because sometimes I do dumb things, like running: rm -rf tmp * Instead of: rm -rf tmp*
- tenken 4y agoI never do "rm prefix" in a dir. I always do "rm ./aDir/prefix" for example. This assures I'm not globbing outside a directory (or just a directory) and tries to help assure I'm not shooting my own foot. Yea, i love up 1 directory before I delete anything.
- zaarn 4y agoIf you setup SMB right (TrueNAS configures this out of the box, SCALE is great if you need a Linux NAS), you can use Windows Shadow Copies to access ZFS snapshots and browse or restore file contents from them.
- MaKey 4y agoAlso possible with BTRFS. I set this up once for a small business with hourly snapshots during working hours. This way users could just restore older versions of files they accidentally deleted, overwrote or messed up in some other way. Another benefit: Those snapshots were read-only, so they also served as a protection against ransomware.
- zaarn 4y agoI don't think BTRFS supports NFSv4 ACLs yet (ie, Windows ACLs are natively supported on ZFS, there is patchset so Linux also supports it but BTRFS obviously has no integration for a patchset that only exists for ZFS). Having NFSv4 ACL access is a huge plus since you can configure permissions natively from windows and have them enforced even on the shell.
- vetinari 4y agoNot sure how Synology implemented it, but they do support Windows ACLs on btrfs volumes.
- zaarn 4y agoThey likely use XATTRs to store the ACL (that is an option in Samba), but it's not native like it's on the TrueNAS systems with the kernel. I bet if you log into the Syno's via SSH you don't get the ACLs enforced on the shell. With the NFSv4 ACL patchseries, they would and you could benefit from the better options that the NFSv4 ACLs give you. Storing them in metadata is not the same as having them natively.
- 4y ago
- geek_at 4y agoNot only that but also > I chose raidz1. With only a handful of disks, the odds of two drives failing simultaneously is fairly low. Which is not really the case of you bought x amount of the same disks and always use them together. I had that happen to me just a few months ago. 4 identical discs bought at the same time. Raidz1 reported one dead/dying disk so I replaced it and started resilvering, which can take days and leaves the disks at 100% utilization. So after 12 hours or so a second one failed and the data was gone. Lesson learned: mix up your disks
- madjam002 4y agoIn my case even mixing up the disks might not help but I agree it’s still helpful. I bought 4x Seagate Ironwolf Pro 12TB drives from different vendors, one failed after a year, then when I got the replacement another drive failed during the rebuild, and then 6 months later the replacement failed. Now another one of the original drives is also reporting reallocated sectors. Same system has 4x WD Red drives which have been running fine with 0 reallocated sectors for almost 7 years.
- idoubtit 4y agoI'm okay with claims that snapshots are much better than backups for many uses. But in this case the GP was explaining that they only used their backups once in several years, so they did not need to change their backup system. I'm in the same boat. I configured remote backup systems on a handful of computers. I think I reached for backups only twice over the last ten years. Of course I need something, backups or snapshots, but for my use case snapshots (with a network copy) would need work to set up. And if the remote storage is worse, that would be more of a problem than the changes in the restore process.
- whoopdedo 4y agoI think of a backup like a fire extinguisher. It's better to have one and never need it than to one day need it and it's not there.