Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SPOSTARBUST_Widget_Class has a deprecated constructor in /home2/cptech/public_html/wp-content/plugins/spostarbust/index.php on line 386

Deprecated: Function create_function() is deprecated in /home2/cptech/public_html/wp-content/plugins/spostarbust/index.php on line 611

Notice: The called constructor method for WP_Widget in SPOSTARBUST_Widget_Class is deprecated since version 4.3.0! Use
__construct()
instead. in /home2/cptech/public_html/wp-includes/functions.php on line 4514
Use FTP to recursively download files in command line | A cPanel Tech

Use FTP to recursively download files in command line

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:password@xxx.xxx.xxx.xxx/

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.

 

Leave a Reply

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

Close Menu