Quote:
Originally Posted by Corona688
Look for a recursive option to mget in it's manpage. I would, but I don't have mget.
mget ist not a command but a subcommand of ftp, therefore you probably "have" it (as long as you didn't purge the ftp command from your system) and it neither has a manpage nor a recursive-option.
The bad news is there is no way to do it with ftp in a simple or straightforward way. ftp was designed as an interactive program and hence is simply not built with your purpose in mind. It may be possible - with finite, but probably pretty high amount of work to put in - to script a solution around ftp, but i wouldn't suggest doing that.
What you can do, though, is to use r-commands (rcp) or their securized counterparts (scp, ...). Look at the manpages of rcp and/or scp and decide for yourself if they fit your purpose.
Another way is to create a tar-file of the subtree and use ftp to transfer it from one machine to another, then use tar to extract it there. While this is a simple and straightforward solution it needs some (depending on the amount of data you want to transfer) and maybe even a lot of disk space. Roughly the size of the tar archive is as big as the single files summed up (check with du to get a picture, if you want to transfer one subtree /transfer/this then issue
du -ks /transfer/this
to get the number of kbytes. The same number you will need again for the tar archive.
bakunin