A partial solution is to backup some of those important files and directories.
Backing up OBIEE.
So what would you need to recreate your OBI install.
- Repository obviously
- A catalog of dashboards and reports
- The instanceconfig.xml file
- The NQSConfig.ini file
The following script assumes the following
- Your middleware home is D:\OBIMW
- Your backup destination is E:\BIbackups
echo off
for /F "tokens=1-4 delims=/ " %%i in ('date /t') do (
set Day=%%i
set Month=%%j
set Year=%%k
)
echo making directory E:\BIbackups\%Year%%Month%%Day%
mkdir E:\BIbackups\%Year%%Month%%Day%
cd E:\BIbackups\%Year%%Month%%Day%
echo copying catalog.....
xcopy /e/y/h/c/k/q/i "D:\OBIMW\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\catalog" E:\BIbackups\%Year%%Month%%Day%
echo copying repository....
mkdir E:\BIbackups\%Year%%Month%%Day%\repository
xcopy /e/y/h/c/k/q/i "D:\OBIMW\instances\instance1\bifoundation\OracleBIServerComponent\coreapplication_obis1\repository" E:\BIbackups\%Year%%Month%%Day%\repository
echo copying presentation services config....
mkdir E:\BIbackups\%Year%%Month%%Day%\presentationservicesconfig
xcopy /y/h/c/k/q/i "D:\OBIMW\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1" E:\BIbackups\%Year%%Month%%Day%\presentationservicesconfig
echo copying server config....
mkdir E:\BIbackups\%Year%%Month%%Day%\serverconfig
xcopy /y/h/c/k/q/i "D:\OBIMW\instances\instance1\config\OracleBIServerComponent\coreapplication_obis1" E:\BIbackups\%Year%%Month%%Day%\serverconfig
echo on
I'll leave the housekeeping and archival and removal of expired backups to you.
No comments:
Post a Comment