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!

Question About two home directory

Discussion in 'General Discussion' started by iLinux85, Dec 28, 2010.

  1. iLinux85

    iLinux85 Active Member

    Joined:
    Mar 28, 2010
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    58
    Hello

    i add new hard disk drive and mounted as /home2 and i add in Basic cPanel/WHM Setup under Home Directory Prefix , now i have accounts already in default home directory which is /home

    the question is : how could i move the accounts already in /home to /home2

    thanks
     
  2. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    555
    Likes Received:
    16
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Twitter:
    You wouldn't.
    Moving accounts from /home/ to /home2/ is far more complicated than just moving the account's directory. You've got logins to worry about, apache to worry about, ftp, mail, cPanel, it's a big old mess. Right now, there's no "automated" way to do this, though you might be able to terminate and restore from backups IF you have the /home2/ partition setup as the primary one. I did say might, because I'm not sure that would work either.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. LiquidWebBenny

    PartnerNOC

    Joined:
    Nov 3, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Lansing, Mi
    The quick and dirty way to do it is to copy all of the contents of the /home/$user directory to /home2/$user, and then symlink them. You will want to make sure, if there is content being written to those folders, that you stop Apache after your initial copy, and re-sync the data.

    Here's a list of commands. Make sure to replace the appropriate information, delineated by a '$'

    That should get some space cleared up for you. If you work with a managed provider, they should be willing to help you out with getting those accounts moved.

    Good luck!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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