IP: | |
Port | |
FTP User | |
Password | |
FTP Path | |
Local File |
1)要复制DA所做的工作,我们首先需要创建ftp config:
cd /root
touch ftp.cfg
chmod 600 ftp.cfg
echo "host 1.2.3.4" >> ftp.cfg
echo "user ftpuser" >> ftp.cfg
echo "pass ftppass" >> ftp.cfg
/usr/bin/ncftpput -f ftp.cfg -V -t 25 -P 21 -m "/ftp/path" "/local/file.tar.gz"
并查看产生了哪些错误。