ftp 自动上传数据库备份文件

将备份好的数据库文件传到另一个电脑上,自动上传数据库备份文件

#!/bin/bash
# ##################################################################
#             Powered by Iron Info FileZilla
# ##################################################################
ftp -n <<- EOF
open 192.168.1.100
user username password
lcd /dpdump/
bin
put TZ_20170811_095154.dmp
bye
EOF
#crontab -e
#0 0 * * * /usr/local/oracle/logicbackup.sh > /tmp/expdp.log 2>&1

 可以结合 定时备份文件一起使用,将上面命令放入 logicbackup.sh

Linux shell crontab expdp 定时任务逻辑备份 定时删除旧文件

http://www.cnblogs.com/vipsoft/p/4989560.html

 

posted @ 2017-08-14 17:49  VipSoft  阅读(408)  评论(0编辑  收藏  举报