Foxtable(狐表)用户栏目专家坐堂 → [原创]放在局域网另一台电脑上的mdb数据库如何自动备份?


  共有8685人关注过本帖树形打印复制链接

主题:[原创]放在局域网另一台电脑上的mdb数据库如何自动备份?

帅哥哟,离线,有人找我吗?
lsy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:5246 积分:33163 威望:0 精华:8 注册:2013/1/17 21:28:00
  发帖心情 Post By:2013/2/20 16:32:00 [显示全部帖子]

@ECHO OFF

IF EXIST d:\hisbak\WEEK0.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak0.dmp full=y
IF EXIST d:\hisbak\WEEK1.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak1.dmp full=y
IF EXIST d:\hisbak\WEEK2.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak2.dmp full=y
IF EXIST d:\hisbak\WEEK3.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak3.dmp full=y
IF EXIST d:\hisbak\WEEK4.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak4.dmp full=y
IF EXIST d:\hisbak\WEEK5.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak5.dmp full=y
IF EXIST d:\hisbak\WEEK6.DMP D:\oracle\product\10.2.0\db_1\BIN\Exp.exe USERID=sys/XXXX@his buffer=4096 file=d:\hisbak\WeekBak6.dmp full=y


IF EXIST d:\hisbak\WEEK6.DMP REN d:\hisbak\WEEK6.DMP WEEK7.DMP
IF EXIST d:\hisbak\WEEK5.DMP REN d:\hisbak\WEEK5.DMP WEEK6.DMP
IF EXIST d:\hisbak\WEEK4.DMP REN d:\hisbak\WEEK4.DMP WEEK5.DMP
IF EXIST d:\hisbak\WEEK3.DMP REN d:\hisbak\WEEK3.DMP WEEK4.DMP
IF EXIST d:\hisbak\WEEK2.DMP REN d:\hisbak\WEEK2.DMP WEEK3.DMP
IF EXIST d:\hisbak\WEEK1.DMP REN d:\hisbak\WEEK1.DMP WEEK2.DMP
IF EXIST d:\hisbak\WEEK0.DMP REN d:\hisbak\WEEK0.DMP WEEK1.DMP
IF EXIST d:\hisbak\WEEK7.DMP REN d:\hisbak\WEEK7.DMP WEEK0.DMP

@ECHO ON


 回到顶部
帅哥哟,离线,有人找我吗?
lsy
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:5246 积分:33163 威望:0 精华:8 注册:2013/1/17 21:28:00
  发帖心情 Post By:2013/2/20 16:33:00 [显示全部帖子]

以上是我们数据库中的一个“葫芦”,看你能否画出个瓢来,这是一个批处理文件,再建一个任务计划,按时执行。


 回到顶部