Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Ran a MV command that wiped my /home/ directory! Please help!

Discussion in 'Data Protection' started by mofolo, Nov 24, 2014.

  1. mofolo

    mofolo Member

    Jan 26, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    I ran (stupidly) this command:

    mv ncdu/ /home/*

    And it caused me to remove all my Apache directories in my /home/ folder, except virtfs (cPanel).

    As you can imagine, It's knocked out my websites.

    I've noticed that /virtfs/ still have all the files of the websites and I have daily cPanel backups stored in my /home2/ directory. I tried to restore, but i've also managed to knock out my WHM login also!

    How do I restore the /home directory to how it should be? Is there a cPanel script I can run or do I have to create hardlinks manually?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please do not attempt to restore content from the VirtFS directory. A bind mount is a transparent link between two places on the file system. For example, if a user views the contents of /home/virtfs/username/usr/bin, the user actually sees the contents of /usr/bin.

    I suggest terminating the accounts, ensuring your /home directory is in it's original state, and then restoring the accounts from backup.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice