Weng Kit
Weng Kit

Reputation: 123

how to copy whole directories using FTP commands

Anyone know how to put whole directories from local to another server using FTP command?

i had use mput , but it just transfer file only.

cd /images_temp --> ws_ftp virtual folder name mput *.IMG --> just transfer multiple file

anyone can teach me what command i need to use to transfer whole directories?

thanks

Upvotes: 9

Views: 63641

Answers (2)

tr33hous
tr33hous

Reputation: 1642

You can use mput * or mget *. Confirm with a rather than y. You can change the prompting behavior using the prompt command. You will find more information in the manual page. In a unix environment, man ftp

Upvotes: 4

Jasonw
Jasonw

Reputation: 5064

You can iterate and decent into directories and use mput *.IMG but that would probably inefficient. Consider using ncftpput where you can upload the directory remotely with just one line.

Upvotes: 3

Related Questions