其他分享
首页 > 其他分享> > ftp

ftp

作者:互联网

1.【下载文件】
    lftp -e "get remotefile localfile;bye"  -p port -u uname,passwd  ftps://ip_adress
2.【上传文件】
    lftp -e "put localfile remotefile;bye"  -p port -u user_name,password ftps://ip_address
3.【同步文件夹】
    lftp -e "mirror -R  /local_path/  /remote_path/;bye"  -p port -u user_name,password ftps://ip_address
    lftp -e "mirror -R  /remote_path/ /local_path/;bye"  -p port -u user_name,password ftps://ip_address
4.【lftp下载文件无法覆盖,提示" file already existst and xfer:clobber is unset" 问题解决方案】
    在.lftprc文件中添加以下配置即可
    set xfer:clobber on

标签:ftp,lftp,ip,ftps,path,bye,port
来源: https://www.cnblogs.com/ai-tech/p/15118719.html