Remove openzfs on mac7/8/2023 You can arrow through the menu and hit enter to select a snapshot, after which httm asks if you’re certain you want to overwrite the current file with a copy of it from the snapshot you chose. This gets you an interactive menu, showing all snapshots which contain the file you’re looking for. Since the parent directory man once contained man1 we start there, and follow the dialogs to select a snapshot from which to restore man1, like so: % httm -r /usr/share/man/ You don’t even have to remember upon which ZFS dataset /usr/share/man/man1 is located. Obviously, this is great! You don’t have to search through your.Do you have any copies of man1 available on any locally available ZFS dataset?.Do you have any copies of man1 readily available in snapshots of the ZFS dataset which should contain it?.Like any good tool httm lets you ask questions, so let’s ask a few questions: Happily, this is exactly where httm can help! The folder that contains the documentation for the most fundamental tools on your system (ls, rm, even man).īefore those misty tears form, you remember you set your system up with automated ZFS snapshots-so you’re sure you’ve got a copy of the lost data, but now you’ve got to trawl through your snapshots trying to find it. Oops, you’ve managed to delete your man1 folder. If you’re not known for your skinny fingers or light touch, you might also accidentally remove the occasional entire folder when you only meant to remove a file: % cd /usr/share/man That cruft might be essentially harmless-but if you’re like me, cruft in your /etc or even your /usr/share/man folder will drive you nuts. The Case of The Infamous Fat-Fingered SysadminĪs a system administrator, you may occasionally try a new software package which leaves some traces of itself behind when you remove it. ![]() Httm does lots of other cool things too, a few of which I hope I will have time to touch upon, but let’s consider The Case of The Infamous Fat Fingered Sysadmin first. ![]() Using httm helps me find my lost files much more quickly, whichmakes the associated I’m a moron feeling pass more quickly as well. Whenever this happens to me-and it does happen to me-I remember that I wrote a little tool called httm. If you’re anything like me, when you accidentally delete something you shouldn’t have, you feel a sudden stab of awfulness about it Digging through backups to find the latest copy of something you lost can make you feel, however irrationally, like a bad person.ĭon’t worry.
0 Comments
Leave a Reply. |