1.ftp自动上传文件脚本 #!/bin/bash ftp -n<<! open 192.168.220.129 user ls toor binary hash cd /path/to/backup lcd /path/to/need/backup prompt mkdir `date +"%Y%m%d"` cd `date +"%Y%m%d"` mput * close bye ! open行--要备份到的主机IP user行--ls为要备份到的主机
最近从 Op 那里报来一个问题,说是SFTP上传文件不成功.拿到的 Exception 如下: Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.security.ec.SunEC at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_111] at sun.r
之前用Apache commons-vfs工具进行ftp操作(FTP服务器是 FileZilla Server) 上传本地文件 到 ftp服务器上,如果文件名称 包含 中文 报错 org.apache.commons.vfs2.FileSystemException: Could not put FTP file to "e:\红黄蓝股价暴跌.docx" to sftp://dsideal:***@192.168.1.168/红黄蓝股价暴跌.docx 1.有可能是 登录FTP用户名没有