Upload all files to FTP server using lftp

lftp allow you to upload all files and sub folders using single command. With normal ftp command, you need to use put/mput command many times to do the same.

To download all files from FTP server, use “mirror” command. mirror command also allow you to upload files to remote server by specifying -R (reverse mirror) option.

This is very useful for uploading files from SSH shell account.

For help, use ? in lftp command prompt. To get help for specific command use

Exampe

To upload all files from local folder to remote server, run

Following will upload vshare2.7 folder to FTP root folder.

See lftp

Add a Comment

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