Call us Toll-Free:
1-800-218-1525
Email us

 Sponsors

How to: Download files from ftp server recursively

Dawn Rossi, 02-27-2009
Need to move files between two servers? No need to download to your local machine first. You can use ncftpget to recursively download all files from a remote server.

Use as follows:


$ ncftpget -R -v -u "ftpuser" ftp.softwareprojects.com /home/backup /www-data

Where,

* -R : Copy all subdirectories and files (recursive)
* -v : Verbose i.e. display download activity and progess
* -u "USERNAME" : FTP server username, if skipped ncftpget will try anonymous username
* ftp.softwareprojects.com : Ftp server name
* /home/backup : Download everything to this directory
* /www-data : Remote ftp directory you wish to copy

If you get an error which read as follows:

tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
Could not read directory listing data: Connection reset by peer

Then add -T option to ncftpget command:


$ ncftpget -T -R -v -u "ftpuser" ftp.softwareprojects.com /home/backup /www-data

Where:

* -T : Do not try to use TAR mode with Recursive mode
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions