Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    29

    Unhappy Script deletes files in /root - server health?

    Hi

    While testing a script I had written, I deleted the files in /root by this command:

    rm -rf *

    Now the server is running but I am told that some critical files have been lost and the server won't be able to come back if it ever had to be rebooted. Is this correct?

    Is there a way to recover from this situation without requiring an OS reload?

    Can a server software update through WHM recreate/recopy these files?

    Thanks for your kind help!
    Arun

  2. #2
    Member cpanelinfoseeker's Avatar
    Join Date
    Oct 2002
    Location
    NE Illinois
    Posts
    319

    Default

    First thing that comes to mind is to check with your data center to see if they have a backup. If so, have them restore it.

    Ron

  3. #3
    Member
    Join Date
    Oct 2005
    Posts
    29

    Default No backup of system files

    My data centre wants to backup something at $135/hour and then suggests that I have to reconfigure everything after they have reloaded the OS.

    If they cannot backup things, why charge?

    I do have access to the root of a friend's CPANEL server. Will it help in any way?

  4. #4
    Member
    Join Date
    Dec 2008
    Posts
    75

    Default

    If you had identical servers, both hardware and software including configuration you could try rsyncing the missing files.

    It depends on your partitioning also.

  5. #5
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    Best bet: bite the bullet. Backup what you can and have them reload the OS.

    That's a painful mistake

  6. #6
    Member SB-Nick's Avatar
    Join Date
    Aug 2008
    Posts
    102

    Default

    Hello,

    Having your /root folder/partition erased will NOT prevent from having your server rebooted without loosing connection.

    Just recreate the folder if it does not have its own partition and restore the common /root files such as .bashrc .bash_profile and you will be fine.
    :: Server Buddies ::

    Server Management & Monitoring

    .Dedicated Server Solutions At Affordable Rates.

Similar Threads & Tags
Similar threads

  1. WHM Server Health Visible to Resellers ?
    By dkg in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-21-2010, 08:33 AM
  2. Call Script that Deletes Logs after Stats Run Manually?
    By thewird in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-12-2008, 09:11 AM
  3. Call Script that Deletes Logs after Stats Run Manually?
    By thewird in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-10-2008, 11:39 AM
  4. how do you upload files to the server using root access
    By ryno267 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-29-2004, 11:54 AM
  5. Replies: 1
    Last Post: 05-18-2003, 10:46 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube