Preloader image
DDD

리눅스

FTP 다량 파일 전송 명령어

작성자 관리자 (admin)
조회수 193
입력일 2021-10-27 13:25:47

---------------------------------
FTP 다량 파일 전송 명령어
---------------------------------
mput *
mget *
---------------------------------

서버 vs 서버 - 대용량인 경우 아주 빠른 속도로 전송되는 장점.

[repenhart@umj7-007 bin]$ l
합계 792
drwxr-x--- 2 repenhart repenhart   4096 10월 27 13:11 ./
drwxr-x--- 9 repenhart repenhart   4096  8월 14 10:27 ../
-rwxr-x--- 1 repenhart repenhart  34782  2월  8  2018 bootstrap.jar*
-rwxr-x--- 1 repenhart repenhart   1647  2월  8  2018 catalina-tasks.xml*
-rwx------ 1 repenhart repenhart  23170  2월  8  2018 catalina.sh*
-rwxr-x--- 1 repenhart repenhart 207125  2월  8  2018 commons-daemon-native.tar.gz*
-rwxr-x--- 1 repenhart repenhart  25145  2월  8  2018 commons-daemon.jar*
-rwx------ 1 repenhart repenhart   1922  2월  8  2018 configtest.sh*
-rwx------ 1 repenhart repenhart   8509  2월  8  2018 daemon.sh*
-rwx------ 1 repenhart repenhart   1965  2월  8  2018 digest.sh*
-rwx------ 1 repenhart repenhart   3680  2월  8  2018 setclasspath.sh*
-rwx------ 1 repenhart repenhart   1902  2월  8  2018 shutdown.sh*
-rwx------ 1 repenhart repenhart   1904  2월  8  2018 startup.sh*
-rwxr-x--- 1 repenhart repenhart  49037  2월  8  2018 tomcat-juli.jar*
-rwxr-x--- 1 repenhart repenhart 405109  2월  8  2018 tomcat-native.tar.gz*
-rwx------ 1 repenhart repenhart   5495  2월  8  2018 tool-wrapper.sh*
-rwx------ 1 repenhart repenhart   1908  2월  8  2018 version.sh* (보낼파일)

[repenhart@umj7-007 bin]$ ftp digital2u.co.kr
Connected to digital2u.co.kr (183.111.183.101).
220 Welcome to FTP Server .. 
Name (digital2u.co.kr:repenhart): khan666
331 Password required for khan666
Password:
230 User khan666 logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (183,111,183,101,154,9).
150 Opening ASCII mode data connection for file list
drwx------   6 khan666  khan666      4096 Oct 27 13:12 .
drwx------   6 khan666  khan666      4096 Oct 27 13:12 ..
-rw-------   1 khan666  khan666     20262 Oct 23 00:21 .bash_history
-rwxr-x---   1 khan666  khan666        33 Nov 21  2017 .bash_logout
-rw-------   1 khan666  khan666       540 Dec 11  2017 .bash_profile
-rwxr-x---   1 khan666  khan666       141 Nov 21  2017 .bashrc
-rw-r--r--   1 khan666  khan666        49 Mar 24  2021 .ftpaccess
-rw-r--r--   1 khan666  khan666         0 Mar 24  2021 .ftpaccess2
-rw-r--r--   1 khan666  khan666        11 Oct 27 13:12 .lastlogin
-rw-r--r--   1 khan666  khan666        16 Oct 27 13:12 .logincount
-rw-------   1 khan666  khan666        77 Jun  7 18:08 .mysql_history.TMP
-rw-------   1 khan666  khan666      1024 Jan 30  2018 .rnd
-rw-------   1 khan666  khan666     11258 Oct 19 11:33 .viminfo
-rw-r--r--   1 khan666  khan666       225 Oct 22 10:27 1.txt
-rw-r--r--   1 khan666  khan666    272745 Oct 22 10:20 AA.txt (받을 파일)
drwxr-xr-x   2 hosting  hosting      4096 Dec  9  2017 DataBackup
drwxr-xr-x   3 khan666  khan666      4096 Aug 27 05:43 temp
drwxr-xr-x  14 khan666  khan666      4096 Nov 20  2018 tomcat
drwxr-xr-x   2 khan666  khan666      4096 Oct 13 14:32 upload_file
226 Transfer complete
ftp> mget AA.txt
mget AA.txt? y
227 Entering Passive Mode (183,111,183,101,137,192).
150 Opening BINARY mode data connection for AA.txt (272745 bytes)
226 Transfer complete
272745 bytes received in 0.0082 secs (33257.53 Kbytes/sec)

ftp> mput version.sh
mput version.sh? y
227 Entering Passive Mode (183,111,183,101,123,34).
150 Opening BINARY mode data connection for version.sh
226 Transfer complete
1908 bytes sent in 1.3e-05 secs (146769.23 Kbytes/sec)

ftp> 
 

^