Shell脚本实现上传zip压缩文件到FTP服务器
2014-12-22 00:00
801 查看
# /bin/bash # creator:lihuibin # date : 2014-03-10 16:45 # desc : upload file to ftp hosts="192.168.56.100" port=21 user=test pass=testpwd work_path="/var/www/cms" packname="publish" #hosts=$1 #port=$2 #user=$3 #pass=$4 #packname=$6 #work_path=$5 cd $work_path /usr/bin/zip -r $packname * [ -f "$work_path/$packname" ] &&{ ftp -n<<! open $hosts $port type binary user $user $pass cd /upload lcd $work_path prompt put $packname close bye ! rm -f $packname }
相关文章推荐
- Shell脚本实现上传zip压缩文件到FTP服务器
- shell脚本实现自动压缩一天前的日志文件并传到ftp服务器上
- CentOS中使用Shell脚本实现每天自动备份网站文件和数据库并上传到FTP中
- 实现自动上传文件到ftp服务器的BAT脚本分享
- 简单SHELL脚本实现FTP上传文件
- CentOS中使用Shell脚本实现每天自动备份网站文件和数据库并上传到FTP中
- mysql定期备份数据并压缩上传到ftp服务器的bat文件脚本,恢复建议使用SQLyog enterprise
- Linux下使用Shell脚本向FTP服务器上传或下载一个文件
- Windows下通过bat脚本实现自动上传文件到ftp服务器
- shell脚本实现上传日志到ftp服务器
- CentOS中使用Shell脚本实现每天自动备份网站文件和数据库并上传到FTP中(转)
- shell脚本实现FTP自动上传文件
- shell小脚本实现上传目录中的所有文件到服务器
- 实现自动上传文件到ftp服务器的BAT脚本分享
- Linux实现文件上传ftp服务器脚本代码
- 上传文件到ftp服务器脚本
- 使用Shell脚本实现ftp的自动上传下载
- java实现把文件上传至ftp服务器
- Linux使用Shell脚本实现ftp的自动上传下载
- Linux使用Shell脚本实现ftp的自动上传下载