1. 首页
  2. 数据库
  3. Oracle
  4. 数据库自动备份.bat

数据库自动备份.bat

上传者: 2018-12-19 12:29:23上传 BAT文件 1007B 热度 40次
oracle 数据库自动备份: if not exist d:\数据库备份 md d:\数据库备份 if not exist d:\数据库备份\OLD md d:\数据库备份\OLd if not exist d:\数据库备份\log md d:\数据库备份\log if exist D:\数据库备份\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp goto new goto export :export echo export oracle Database start,please wait........ ! exp new_ylqfs/new_ylqfs@ylcz file=d:\数据库备份\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp log=d:\数据库备份\log\backup.log goto end :new echo REname and move NewFIle as Oldfile.......! move d:\数据库备份\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp d:\数据库备份\Old ren d:\数据库备份\Old\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp old_new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp goto export :end C:\Progra~1\WinRAR\winrar a -r d:\数据库备份\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.rar d:\数据库备份\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp del d:\数据库备份\new_ylqfs%Date:~0,4%%Date:~5,2%%Date:~8,2%.dmp echo export oracle Database ok ! exit
用户评论
码姐姐匿名网友 2018-12-19 12:29:23

蛮好的,正在用,效果不错。