Forum Discussion

Amaan's avatar
Amaan
Level 6
13 years ago

OpsCenter database backup

Hi All, Is there way to automate OpsCenter database backup. i know that backup can be done by running dbbackup and destination, but it should be run manully, how i can automate that, so it will run...
  • Ramazan_Cakir's avatar
    13 years ago

    Trying to automate dbbackup with windows schedule did not work first.

    But here is what i have done :

    - copy dbbackup.bat to <your_db_backup.bat> in C:\installpath\bin\

    (script has to reside in his origin directory)

    - modify in <your_db_backup.bat> following lines :

    .....

    @REM if "%~1" == "" goto HELP <-- origin line
    if "%~1" == "" goto MAIN     <-- modification
    goto MAIN

    ......

    :MAIN
    @REM set BACKUP_DIR=%~1   <-- origin line
    set BACKUP_DIR="H:\backup"   <-- modification

    - create a schedule where in tab TASK :

    RUN --> "C:\Program Files\Symantec\OpsCenter\server\bin\<your_db_backup.bat>"

    START IN --> "C:\Program Files\Symantec\OpsCenter\server\bin"

    - and modify in schedule tab time settings for your need

    hth