Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to copy whole directories using FTP commands

Tags:

ftp

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

like image 591
Weng Kit Avatar asked Mar 20 '12 06:03

Weng Kit


2 Answers

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.

like image 157
Jasonw Avatar answered Nov 17 '22 01:11

Jasonw


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

like image 3
tr33hous Avatar answered Nov 17 '22 01:11

tr33hous