Oracle RMAN scripts, windows下Oracle RMAN实现的自动备份脚本.

源代码在线查看: scp_rman_arch_files.bat

软件大小: 577 K
上传用户: dsjacky
关键词: Oracle RMAN scripts windows
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				call I:\example\backup\rman_backup_script_win\set_env.bat
				
				echo ""
				echo " ************************************* scp_rman_arch_files.sh file run begin *******************************"
				echo ""
				
				
				# *************************** generate the scp backup script start **************************
				
				@if  "%SCP_FROM_DBS_TO_BS%" == "yes" (
					echo @echo scp backup archs to backup server  	> %DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					echo. 											>> %DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					echo xcopy /s/e/y %DBS_BAK_ARCH_DIC1%\* %BS_BACKUP_DIC%\arch\ >> %DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					echo.											>> %DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					echo deltree /y %DBS_BAK_ARCH_DIC1%\*					>> %DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					
					echo @echo yes ^> %DBS_TAG_DIC%\arch_scp_bak.flag	>> %DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					
					%DBS_BAK_GEN_FILE_DIC%\scp_arch_data_g.bat
					
				)
				
				# *************************** generate the scp backup script end **************************
				
				echo ""
				echo " ************************************* scp_rman_arch_files.sh file run end *******************************"
				echo ""			

相关资源