Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    1

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

    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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

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

    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.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    38

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

    Is there any other automated way to download weekly backups?

  4. #4
    Member
    Join Date
    Mar 2010
    Posts
    39

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

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 05-08-2010, 02:13 PM
  2. How to download files from other server???
    By Neso in forum New User Questions
    Replies: 1
    Last Post: 02-20-2009, 04:09 AM
  3. need script that can copy multiple files at same time by ftp/ssh
    By heavypredator in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-27-2007, 08:46 AM
  4. Download Files Using SSH & Putty
    By Supafly in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 03-18-2006, 06:36 AM
  5. unable to download ftp raw log files
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-24-2005, 08:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube