Re:Man accidentally 'deletes his entire company' with one li...
by nickpsecurity on Thursday April 14, 2016 @08:12PM
(#11501212)
Two different people here have already figured out this wouldn't have happened in OpenVMS due to versioned filesystem w/ rollback. People also claim saner commands for this stuff but I can't recall if remove was smarter.
Anyway, pertaining to RM, here you go:
Re:Man accidentally 'deletes his entire company' with one li...
by yrro on Thursday April 14, 2016 @01:50PM
(#11498926)
Make `--one-file-system` the default!
Re:Man accidentally 'deletes his entire company' with one li...
by rbanffy on Thursday April 14, 2016 @07:40PM
(#11501096)
He really should not have made the first element of the path variable. Doing an "rm -rf /folder/{$undefined_value}/{$other_undefined_value}" would have made his day much better.
Also, never having all backup disk volumes mounted at the same time is good practice.
> ...or administrative action.
You mean like, "sudo rm -rf {$undefined_value}/{$other_undefined_value}"? D'oh!