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!

How to create a sybolic(?) link?

Discussion in 'General Discussion' started by Shneur, Aug 31, 2003.

  1. Shneur

    Shneur Member

    Joined:
    Aug 7, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    I understand I can create accounts in a second hard drive, say, /backup, and then link it (I think symbolic link and not hard link -what's the difference?-) to the regular /home directory so that it functions as a regular account.

    Can someone take me through this, step by step, as to how to do it via WHM (and/or ssh)

    Thanx much
    Shneur

    cPanel.net Support Ticket Number:
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Symbolic links are done in SSH, but moving a site to /backup may not be a good idea. Do you use backup? Is it set to be unmounted between backups? If it's unmounted, that would make the new location unreachable. Not a good thing. ;) If you use backup, but it's not unmounted between backups, it means your backups aren't as safe as they should be.

    If you still want to move a home directory to backup, here's how.

    mv /home/username /backup/username
    cd /home
    ln -s /backup/username

    replace username with the actual username of course.

    While in SSH, type
    mv --help
    man mv
    ln --help
    man ln
    and repeat with any other commands you can think of. That's the easiest way to learn the commands. :)

    cPanel.net Support Ticket Number:
     
    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