随笔分类 -  lftp

ftp传输文件到指定服务器
摘要:#!/bin/bashfilePrefix="dbname"localDir="/DBBackup"remoteDir="/Backup"cd $localDiroldfile=$filePrefix"_$(date +%Y%m%d)*.sql"newfile=$filePrefix"_$(date... 阅读全文
posted @ 2015-04-17 08:55 franjia 阅读(629) 评论(0) 推荐(0)
linux批量远程多服务器FTP并下载文件的脚本
摘要:#!/bin/bashtime=`date +%Y%m`day=`date -d '-1 days' +%Y%m%d`localDir="/DBBackup/GameDB"cd $localDir#ip_game.ini配置ftp服务器的ip,账号,密码等,格式自己定义#比如:Server1 use... 阅读全文
posted @ 2015-04-01 15:53 franjia 阅读(727) 评论(0) 推荐(0)