Protection from "rm *" (summary)
Andy Oram
andyo at glasperl.masscomp
Tue Oct 9 06:13:22 AEST 1990
I didn't want to jump in and be a wet blanket, because this thread turned up
some neat tricks, but I don't think nobody has mentioned this yet -- really, a
rogue rm command is the least of your worries. I myself am much more likely
to wipe out my work by:
Moving a file to a directory that already has a file with the same
name (yes, I know that mv and cp have -i too, but you can spend your
life disabling utilities' standard practices).
Writing out a file that I've munged, or where I accidentally deleted
90% without realizing it, because the part that showed up on my screen
looked fine.
Getting "make" confused and having it think your source is a target,
and removing it because an error occurred.
etc., etc.
So let me act like a school-marm for just a moment, and say that the minimal
protection you need is the classic protection: daily back-ups and source
control. The most state-of-the-art solution I know of would be version
control, like Emacs implements for edited files, and like a certain operating
system I dare not mention without being laughed at implements across the whole
system.
-------------------------------------------------------------------------------
Andrew Oram Concurrent Computer Corporation
(I don't represent Concurrent; this message represents my own opinion)
Digital Communications Route: andyo at westford.ccur.com
{harvard,uunet,petsd}!masscomp!andyo
Analog Communications Route: (508) 392-2865
Automatic UN*X documentation utility:
cref | compress | crypt | man
-------------------------------------------------------------------------------
More information about the Comp.unix.misc
mailing list