oracle数据库备份与恢复的详细资料集合
源代码在线查看: scp_rman_arch_files.bat
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 ""