I reckon it's a troll, but to be fair, pretty much everyone that's done sysadmin of any type has made a reasonably serious
****-up at some point. I don't believe you'd run something like this on all systems before trying it out on a dev box and then a bunch of UAT ones, though.
I don't do much unix admin these days but I've always found it much safer to use something like:
find /path/to/"$foo"/"$bar" -exec rm {} \;
Especially as you can check properly for sane variable(s) beforehand and in testing/debugging you can coment out the exec bit and see exactly what you're going to be deleting. If typing in the console, it saves that accidental hitting of return causing grief, too.
I think I'd have cloned the backup server disks and tried running a recovery program on those afterwards seeing as only the file descriptors would have been removed rather than the data itself?
I've managed to get a wiped system back once after a similar mishap, albeit with a broken database. Damn right mouse click (paste) in a root terminal with part of a script in clipboard. Also pasted some router config in by mistake once which changed the server hostname and messed up the application running on the server, amongst other things.
