How to recover a file you accidentally deleted?
is on a ZFS
file system you can easily retrieve files you deleted from an automatic snapshot created by the system.
Just cd into the hidden
directory and select one snapshot:
Under each of the directories you will see your $HOME as it looked like at some point in the past. Just copy the wanted files from there to your actual $HOME and all should be alright again.
 Easy to find out with this command
mount | grep $(whoami)
If the line starts with a server named like
. if it starts with hsm or the line contains
this will not work for you.
- 23 Jul 2010
| Title || How to recover a deleted file yourself |
| Description || Use ZFS's snapshots to recover a file you accidentelly deleted |
| Tags || zfs, file, recovery |
| Category || User |