• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

A cPanel Tech

The Diaries of a Linux Server Administrator

  • Home
  • About
  • Privacy
You are here: Home / Control Panels / Use FTP to recursively download files in command line

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 116

Use FTP to recursively download files in command line

March 5, 2016 By admin Leave a Comment

FTP is a great tool to download files when we do not have root access. So when we migrate a cPanel account from those providers who have the the cPanel’s backup tools disabled ( hostgator, bluehost , etc ) , we might end up downloading the files to the local computer and then uploading it. Here is how to use FTP to recursively download files from a cPanel account.

We can use the wget tool to get this done. Keep the cPanel username and password of the remote account in hand, and the remote server’s IP address.

Install and use wget

yum  -y install wget
mkdir backup ; cd backup
wget -rm ftp://username:[email protected]/

The above command will download the remote files to your server directly, it may take some time to complete, but it will download the entire FTP area to your local computer. You will find a folder called xxx.xxx.xxx.xxx in your backup folder, which will contain all your necessary files.

 

Filed Under: Control Panels

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Copyright 2018 CPanelTech