Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EMERGENCY - I deleted everything by mistake
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jorgeped
n00b
n00b


Joined: 09 Jul 2008
Posts: 2

PostPosted: Wed Jul 09, 2008 1:53 am    Post subject: EMERGENCY - I deleted everything by mistake Reply with quote

Hi Folks,

I was working on one of our production servers, and was moving around directories, some of them had weird names that were causing issues with our web based system, so I'm logged in by SSH to the remote live server to remove and change the names of this directories. One of them had a name like Child / (Child[space]/), so I try executing rm -r Child / and when I figured out what I just did it was too late...

Lucky me, the database seems to be there (I'm backing it up), and I'm still logged in through ssh, but all the commands binaries were deleted, I can't even execute cd nor ls.

I'm going to get my ass kicked tomorrow :S please if some one know what to do I would highly appreciate it. (I don't have direct access to the server, only through ssh).

THANKS! 8O
Back to top
View user's profile Send private message
srunni
Guru
Guru


Joined: 26 Dec 2007
Posts: 365

PostPosted: Wed Jul 09, 2008 2:11 am    Post subject: Reply with quote

Try doing the stuff the guy in this article did:
http://lug.wsu.edu/node/414
Just one thing - do not reboot!
Back to top
View user's profile Send private message
jorgeped
n00b
n00b


Joined: 09 Jul 2008
Posts: 2

PostPosted: Wed Jul 09, 2008 2:42 am    Post subject: Thanks Reply with quote

Thanks a lot, I'm reading it!
I haven't rebooted!
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Wed Jul 09, 2008 2:59 am    Post subject: Reply with quote

Moved from Gentoo Chat to Other Things Gentoo.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jul 09, 2008 8:41 pm    Post subject: Reply with quote

A statically compiled busybox [1] may come in handy to get your
system back up to speed.

[1] http://busybox.net/about.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum