hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Help!!! deleted directory /keys
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Help!!! deleted directory /keys

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-20-2006, 12:56 AM
HD Fanatic HD Fanatic is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,099

Help!!! deleted directory /keys


This is on my rsync server at bqinternet runnig FreeBSD. I wanted to remove everything inside /home/dave/server1/home

so I executed these commands:

ls
cd server1
rm -rf /home/

that inadvertently removed the directory /home/dave/keys and /home/dave/server1/etc so I cancelled the operation to avoid further damage

what should I do now? I need the keys folder for my other server to do the daily rsync backups. Lastly, what is the _proper_ command to remove /home/dave/server1/home ?? the command I issued probably will remove everything inside /home/

Reply With Quote


Sponsored Links
  #2  
Old 08-20-2006, 01:22 AM
Lightwave Lightwave is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: San Jose, CA.
Posts: 1,616
Your changing directories to server1 was useless because you put the full path in your rm -rf command

rm -rf /home
should have been rm -rf ./home (assuming your CWD is still /home/dave/server1)

In general I'd suggest using the full path: rm -rf /home/dave/server1/home

so you dont make a mistake like that in the future.

Reply With Quote
  #3  
Old 08-20-2006, 01:09 PM
efarmer efarmer is offline
Web Hosting Master
 
Join Date: Aug 2003
Posts: 833
support [at] bqinternet.com should be able to help you

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Windows Azure Offers Active Directory in General Availability Web Hosting News 2013-04-09 14:09:20
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08
50c21c1c-1d94-4ed4-adac-26fa45a79943 Listing 2013-03-05 18:26:32
Web Host Hostway Offers Compliant Ready Upgrade for Hosted Exchange Web Hosting News 2012-07-30 14:26:14
Selling Your Hosting Company - #6 - Turning Over the Keys Blog 2012-03-13 10:00:32


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?