IP: | |
Port | |
FTP User | |
Password | |
FTP Path | |
Local File |
1)要復(fù)制DA所做的工作,我們首先需要?jiǎng)?chuàng)建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"
并查看產(chǎn)生了哪些錯(cuò)誤。