Changeset 2007

Show
Ignore:
Timestamp:
01/04/09 15:14:48
Author:
douglm
Message:

Add newsys option to windows dump/restore bat file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/dumprestore/shellscr/resources/dumpres.bat

    r2006 r2007  
    3838  if "%1" == "backup" GOTO backup 
    3939  if "%1" == "initdb" GOTO initdb 
     40  if "%1" == "newsys" GOTO newsys 
    4041  if "%1" == "drop" GOTO drop 
    4142  if "%1" == "drop-export" GOTO drop-export 
     
    5354  ECHO        Populate the database using the provided initial data. 
    5455  ECHO. 
    55   ECHO     newsys [ -ndebug] 
    56   ECHO        Create a new empty system based on the build configuration. 
     56  ECHO     newsys <root-user> [-ndebug] 
     57  ECHO        Create a new empty system based on the build configuration with a 
     58  ECHO        single root user 
    5759  ECHO. 
    5860  ECHO     dump {filename} 
     
    132134  GOTO end 
    133135  :: 
     136 
    134137:initdb 
    135138  ECHO   Initializing the database: 
     
    139142  GOTO end 
    140143  :: 
     144 
     145:newsys 
     146  ECHO   Creating new system database: 
     147  ECHO. 
     148  ECHO   %RESTORECMD% -appname %APPNAME% -newSystem rootid %2 %3 %4 %5 %6 %7 %8 %9 
     149  %RESTORECMD% -appname %APPNAME% -newSystem rootid %2 %3 %4 %5 %6 %7 %8 %9 
     150  GOTO end 
     151  :: 
     152 
    141153:drop 
    142154  ECHO   Creating drop sql