The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to download server files on cpanel, ftp or ssh?

Discussion in 'General Discussion' started by Nicholai09, Feb 4, 2011.

  1. Nicholai09

    Nicholai09 Registered

    Joined:
    Feb 4, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Is their a way to use File Manager on the server itself? i am trying to download my /home folder to my computer but i cannot do it through ssh and ftp cannot get to the file. Any suggestions why cpanel wont activate file manager for the server itself. It seems pretty necessary.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Nicholai09,

    Is there a reason you need to download the entire /home directory? You could simply enable backups in WHM > Backup > Configure Backup area in WHM, then set them to download to a remote FTP server. This would then make a backup of all accounts, including the /home/username directories.

    Otherwise, if you truly need just the /home directory, you could tar it up and move it to an account to download via FTP:

    Code:
    tar -pczf /home/user/homedirectory.tar.gz /home/
    Here replace user with the cPanel username and this will compress the directory into that user's directory. You may also need to change the ownership to that user to download it:

    Code:
    chown user:user /home/user/homedirectory.tar.gz
    Of note, you will need to have sufficient space to create this archive file. If you do not, it will fail during packaging to create.

    Finally, File Manager cannot have /home as an available option as it would be a root level account to do that, which isn't provided for cPanel access (root user only has WHM access rather than a direct cPanel account). Additionally, allowing /home or any other root level partition (one that only root or a sudo user can access) would be a huge security risk for FTP access.

    Thanks.
     
  3. dyrer

    dyrer Active Member

    Joined:
    Jun 3, 2005
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Is there any other automated way to download weekly backups?
     
  4. m4rc3

    m4rc3 Active Member

    Joined:
    Mar 26, 2010
    Messages:
    39
    Likes Received:
    2
    Trophy Points:
    8
    dyrer,

    You can use a hook for that.
    ScriptHooks < AllDocumentation < TWiki

    /scripts/postcpbackup

    I would put a script to use rsync to copy the backups via ssh.
    That way you have local backups in case you need to roll back quick but you also have off site backups in case of "Oh shit" situations.
     
Loading...

Share This Page