Getting & Putting files between servers (ncftp)

Written by Peter Davies on .

You'll need "ncftp" on which ever machine your using:

apt-get install ncftp

To get files from a server use:

ncftpget <authentication details> <remote host> <local files> <remote dir>

Specifically something like: ncftpget -R -T -v -u site.co.uk ftp.site.co.uk ./ /public_html/*

To put files onto a remote server use:

ncftpput <authentication details> <remote host> <remote files> <local dir>

Specifically something like:ncftpput -R -T -v -u site.co.uk ftp.site.co.uk /public_html ./*

The Linux man page for it is here and at the IBM site here.

If you get a message saying: this does not look like a tar archive simply add a new param "-T" which says to the application not to try a tar download of the files.