shell实现FTP自动批量上传下载文件

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

1. 批量下载文件到本地目录/data2/noc/nocfile/output/

#!/bin/bash

ftp -n<

 

2.批量上传文件到远程FTP服务器指定目录下/input_upload

 

#!/bin/bash
ftp -nuser noc server@123
binary
hash
cd /input_upload
lcd /data2/noc/nocfile/input/
prompt
mput *
close
bye
!
cd /data2/noc/nocfile/input/
ls *

转载于:https://my.oschina.net/u/1866459/blog/493230

你可能感兴趣的:(shell实现FTP自动批量上传下载文件)