Using wget to recursively download whole FTP directories

Want to copy all of the files and folders from one linux web hosting account to another.
The files on the old host sit at /var/www/html and If you have FTP access to that server then fire bellow command and you done with it!

Before that you can make zip / tar / tar.gz of all your files & folder at old host and type bellow command on your new host's SSH

wget -r ftp://<OLD-HOST-ZIP-File-PATH> --ftp-user=<OLD-HOST'S-USERNAME> --ftp-password=<OLD-HOST'S-PASSWORD>


Using wget to recursively download whole FTP directories Using wget to recursively download whole FTP directories Reviewed by Shoutcast Radio Reseller - KMwebSoft.com on August 29, 2018 Rating: 5

No comments:

Powered by Blogger.