Re:Man accidentally 'deletes his entire company' with one li...
by mcv on Friday April 15, 2016 @05:17PM
(#11507678)
True, but backup scripts that make use of rm -rf should have been really thoroughly tested, and contain a check that they are really only about to delete the thing they're supposed to delete.
Also, perhaps they shouldn't be running as root. There's no reason why any script should have permission to write everywhere. It just needs write access on the backup device.
It says "ignore nonexistent files and arguments, never prompt".
Seems to me that the "never prompt" behaviour is an important requirement for a backup-script, though? Cause backup-scripts should work unattended, and definitely not pause and wait for input under any circumstances, right?