How to upload/download recursively using only ftp

Im used to have access in all our servers with full access, with ssh root you can do anything on the server, permissions, ownership issues will be addressed easily without hassle. I had this experience in downloading/uploading files from remote servers using only ftp. It took me hours to finally solved it, ftp has a limitation it doesnt recursively download all sub directories, it does execute this line ftp> mput -r * , but what it only does is copying all files, it doesnt copy sub folders.

I found an application lftp, its a sophisticated http/ftp client, its a file transfer program and do what ftp cant do, especially ftp’ s recursive isses on subfolders.

# lftp ftp_host
> user username password
> mirror source target
(download entire directory tree)
> mirror -R source target
(reverse mirror; upload entire directory tree)

This will save you gazillions of hours if you are transffering files with subfolders using ftp only.




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s