UNIX: how to transfer whole directory in FTP?

wizzz

Senior member
Jul 20, 2000
267
0
0
yo,

I sometimes use FTP in UNIX and transfer files using the command "get filename"
But how do I get a whole directory instead of one file?
Also, how can I transfer multiple files at once?

I'd appreciate any help!
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
mget to get multiple files. To transfer a whole directory more advanced clients will do this automatically if you just drag and drop the directory.

Dang! *NIX. Okay, no ncftp? Great to do whole directories. If you want to mirror look at tools like rsync, wget, mirror, etc., et al.
 

wizzz

Senior member
Jul 20, 2000
267
0
0
Thanks for the help!

Actually the UNIX system I'm using does have ncftp.
But I have no idea how this works.
Are the commands the same as ftp?
If you could teach me some basic commands and the command to transfer a whole directory, I'd really appreciate it.
 

bubba

Golden Member
Oct 10, 1999
1,589
0
0

With some client/server packages one can say 'get dirname.tar' and it will automatically tar the directory 'dirname' and get it for you. Some will even do 'get dirname.tar.gz', which will gzip it as well.
 

Dark

Senior member
Oct 24, 1999
639
0
0
If u use mget, don't forget to start ftp with the switch to avoid confirmation for each download. Can't remember which, one do a man.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Help is real easy in ncftp, or for any command line client for that matter, just type help and it will list all the commands. Type help <command> and it will give you help on that command. The man page for ncftp isn't bad either.
 

wezal

Member
Aug 25, 2000
91
0
0
Hey Bubba,
That get dirname.tar rocks! I was having the same problem as wizz and the best thing is that now my file permissions are all intact! Thanks!
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
Dark: you can use the &quot;prompt&quot; command to turn the interactive prompt on/off....