Made something wrong in server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Made something wrong in server
# 1  
Old 11-13-2011
Made something wrong in server

hello friends, l was using this command to empty tmp directory
Quote:
find /tmp -type f -mtime +5 -exec rm -f {} \;
but l made this by mistake :
Quote:
find / -type f -mtime +5 -exec rm -f {} \;
and l cant reach my sites now.
what l did ???

---------- Post updated 11-13-11 at 12:07 AM ---------- Previous update was 11-12-11 at 11:59 PM ----------

all my sites are down, does any1 know how can l recover from this mistake?
# 2  
Old 11-13-2011
The answer depends on how paranoid or optimistic (question of point of vue...) you are...
Do you have good backups? Really good ones would be boot/recovery type...
Now, since you say all your sites, are you talking of web sites? (less desperate then...) in which case maybe / is a relative...
# 3  
Old 11-13-2011
webhostingtalk.com/showthread.php?t=1098110
here is the current problem issue.
# 4  
Old 11-13-2011
Did you read the posts in the other forum? You basically removed all files older than 5 days from your server, including any executables that are required to run a webserver. And chances are that those required to install software are affected too. Since you don't have a backup your best chance is to re-install the complete system.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

An email that has made my day...

Today I received an email from 'code.activestate.com'. It was referenced to a Python code snippet I wrote 3 years and 2 months ago. It was the third party comment at the bottom that was emailed to me... As I am a pure amateur coder this has really made my day... Platform Independent... (1 Reply)
Discussion started by: wisecracker
1 Replies

2. What is on Your Mind?

Self made monitoring application

Hi.. Looking for advice / feedback Work in IT in an operational team, number of years ago, all monitoring was manual, vast checklists for unix checks, checking space, checking application processes, files etc. filling in spreadsheets etc. I took some basic scripting courses in ksh and... (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Shell Programming and Scripting

Why result is wrong here ? whether break statement is wrong ?

Hi ! all I am just trying to check range in my datafile pls tell me why its resulting wrong admin@IEEE:~/Desktop$ cat test.txt 0 28.4 5 28.4 10 28.4 15 28.5 20 28.5 25 28.6 30 28.6 35 28.7 40 28.7 45 28.7 50 28.8 55 28.8 60 28.8 65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

4. UNIX for Dummies Questions & Answers

Wrong Time on Server

Hello Folks, The following: I got to solve a problem for a colleague. I do have an server HP-UX in a network. There is a Time Server, but it has to be adapted, due to NTP not reachable. The time on the server notifies more then 10 minutes in the future. There is a working database on the... (2 Replies)
Discussion started by: velde_van_der_a
2 Replies

5. Shell Programming and Scripting

Can SQL Server call be made from unix sh

Hi, I need to make SQL Server procedure call (exec <proc name>)from unix shell script. First of all I would like to know if it is possible. I know we can do it from Oracle but not sure about SQL Server. Version: SunOS 5.8 SQL 8.0 I have made the below entry in the interface file. NSXNA267 ... (0 Replies)
Discussion started by: sspreethi
0 Replies

6. Windows & DOS: Issues & Discussions

DCHP server assigning a wrong Address

Pls could you help me diagnose my problem. I have a system which is a DHCP server and also the Remote Access Server. The DHCP server allocate normal address within the scope range to the LAN system. why it allocates abitrary number such as 169.254.217.90 255.255.0.0 class B address to the remote... (1 Reply)
Discussion started by: kayode
1 Replies

7. Shell Programming and Scripting

Can this be made into one single line?

Can someone please suggest a script to make the following into one single (continuous) line so that a pattern search can be carried out on the resulting single line. Note : Sample (may be shorter or longer) and will be contained in a text file ... (6 Replies)
Discussion started by: nmsinghe
6 Replies
Login or Register to Ask a Question