UNSOLVED

bh3PMn5UF211658

updated

16 years ago

0

641

November 3rd, 2010 08:00

How to start savegrp by Replication Manager?

Hi,

I looking for script that can start backup group in Networker after the Replication Manager finish the replica.

Can someone help with example of this script please?

Thanks

Shay

  • amediratta

    2 Intern

    •

    2014 Posts

    247

    0

    Posted November 16th, 2010 23:00

    If replication manager allows running command lines after completing a replication job, use savegrp -G {groupname}.

    If not, you can use savepnpc of Networker, precmd could be some small non critical command and postcmd could run Replication Manager job by command line.

  • 247

    0

    Posted November 18th, 2010 07:00

    Thank you for your answer.

    I got the script how to start group from the client:

    ---------startgroup.bat------------------

    @echo off
    set GROUPNAME=%1%
    set BACKUPSERVER="ilnetworker"
    set TEMPFILE=%TEMP%\%RANDOM%.txt

    echo . type: NSR Group; name: %GROUPNAME% > %TEMPFILE%
    echo update Autostart: Start now >> %TEMPFILE%


    nsradmin -s %BACKUPSERVER% -i %TEMPFILE%
    del %TEMPFILE%

    --------end of startgroup.bat-----------------

    Savegrp can be run only in the networker server and not at the client or the storage Node.

    because of the Variable time of the replica in the replication manager, i cant schedule the backup in fix time and run savepnpc.

    Shay,