Oops

Page may contain affiliate links. Please see terms for details.

gannet

New Member
oops
icon_redface.gif


you have a backup right ?
 

JamesAC

Senior Member
Location
London
I DO like the "rm -rf". As in DON'T!

Once, in my professional capacity as a DBA, along with my colleague the Sysman, decided to do a "rm -rf" logged in as root, from \.

We must have been eating the wrong sort of mushrooms!

Fortunately, we did have a current backup of our data, and descriptions of the partitions and so on, and so were able to rebuild unix on our Alpha box, and restore the data.

Folks .. it's almost NEVER too late to back up your data!!
 
OP
OP
MossCommuter
Location
Salford
http://projects.izzy.../wiki/ext3undel - is this any good to you? I've not used it myself, I'm just googling

It is for occasions like this that I have an external usb disk and an rsnapshot cron job that backs up onto it four times a day


thanks for looking...

Those scripts rely on Foremost which gave a segmentation fault - no matter anyway. I went back to a old backup and managed to get any recent music downloads off of my MP3 player.

Nothing lost I think.

thanks again
 

Carwash

Señor Member
Location
Visby
I'm sorry for your loss. :sad: Doing 'rm -rf' as root is always fraught with danger. I hope you managed to recover your data.

This calls to mind the following quote from the Scary Devil Monastery:

"Sir, Sir! I've deleted all my files."
"Yes my child, and pray tell me how."
"I wanted to delete directories 'fred1' and 'fred2' but I typed 'rm -rf fred *' when should have typed 'rm -rf fred*'."
"Ah ha, and what have you learned?"
"To beware of powerful file-name globbing facilities that my shell provides for my careful use."
"Yes my child, you have learnt a painful lesson. Now you must learn how to recover files from one of the many, multiply redundent backup tapes you have carefully written every evening ever since you were granted a powerful personal workstation."
"Master, I'm eager to learn!"
 

GrasB

Veteran
Location
Nr Cambridge
I'm sorry for your loss. :sad: Doing 'rm -rf' as root is always fraught with danger. I hope you managed to recover your data.

This calls to mind the following quote from the Scary Devil Monastery:

"Sir, Sir! I've deleted all my files."
"Yes my child, and pray tell me how."
"I wanted to delete directories 'fred1' and 'fred2' but I typed 'rm -rf fred *' when should have typed 'rm -rf fred*'."
"Ah ha, and what have you learned?"
"To beware of powerful file-name globbing facilities that my shell provides for my careful use."
"Yes my child, you have learnt a painful lesson. Now you must learn how to recover files from one of the many, multiply redundent backup tapes you have carefully written every evening ever since you were granted a powerful personal workstation."
"Master, I'm eager to learn!"
* is evil, use with extreme caution.... bash implements some regex which is much more reliable the rm command becomes:
rm -rf fred[12]
not fail safe from typos but much less likely to cause problems.
 

Wobblers

Euthermic
Location
Minkowski Space
I, along with most sys admins, am currently uttering a blessing starting "There, but for the grace of god... "

But on the bright side, at least you won't do that again! :smile:
 
Top Bottom