Top
ETERNUS SF AdvancedCopy Manager V15.3 Operation Guide
ETERNUS

8.4.6 Changing a Configuration

In addition to the Backup Execution Script, the Backup Wizard for Exchange Server generates the following script:

Using the configuration removal script that was generated, the backup configuration can be changed.

The backup configuration can be changed according to the following procedure:

  1. Remove the current configuration.
    Using the configuration removal script that was generated in "8.4.5.1 Creating the Backup Execution Script", remove the current configuration.
    Refer to "Removing a configuration" for information on the procedure for removing the configuration.

  2. Change the Mailbox Server database configuration and backup server volume configuration.

  3. Generate the backup script.

Note

When you change the database configuration of the Mailbox Server or the volume configuration of backup server, please change within the range of the composition described in "Supported volume configurations" in "8.4.1.2 Supported configurations"

After changing database configuration, perform the procedure described in "Reload the server configuration information" in the ETERNUS SF Web Console Guide.

See

Refer to "Create an Exchange Server backup script and script execution environment setting by wizard" in the ETERNUS SF Web Console Guide for information on how to perform the generation of the backup script.

The configuration removal script specification is shown below:

Table 8.12 Configuration removal script specification

Configuration removal script storage destination server

Mailbox Server

Configuration removal script file name

<Program directory when AdvancedCopy Manager's agent is installed>\Wizard\bat\delete_backup_<DBname>_<Date>.bat

Configuration removal script encoding

ASCII

Configuration removal script exit status

0: Exits normally
Value except 0: Exits with an error

DBname: Mailbox database name or public folder database name.
Date: Date/time file is created. Format: "yyyymmddhhmmss".

The configuration removal script file content is shown below:

@echo off

setlocal enabledelayedexpansion

set CMDPATH=<CMDpath>
set BACKUP_DB=<DBname>
set DBORG=<DBORGVolume>
set DBREP=<DBREPVolume>
set LOGORG=<LOGORGVolume>
set LOGREP=<LOGREPVolume>

set CHECK="swsrpshadowadm_exchange successfully completed"
set ERRCODE_OK=swsrp4723
set CMD=%CMDPATH%swsrpshadowadm_exchange stopqopc -dbname %BACKUP_DB%
set RET=
for /f "usebackq tokens=*" %%i in (`%CMD% 2^>^&1`) do (if "%%i"==%CHECK% (set RET=OK) else (call :CHECK %ERRCODE_OK% %%i))
if not "%RET%"=="OK" echo delete_backup is failed. & exit /b 1

set CHECK="swsrpdbinfo_exchange successfully completed"
set CMD=%CMDPATH%swsrpdbinfo_exchange -delete -dbname %BACKUP_DB%
set RET=
for /f "usebackq tokens=*" %%i in (`%CMD%`) do (if "%%i"==%CHECK% set RET=OK)
if not "%RET%"=="OK" echo delete_backup is failed. & exit /b 2

set CHECK="swsrpdelvol completed"
set CMD=%CMDPATH%swsrpdelvol %DBORG% %DBREP%
set RET=
for /f "usebackq tokens=*" %%i in (`%CMD%`) do (if "%%i"==%CHECK% set RET=OK)
if not "%RET%"=="OK" echo delete_backup is failed. & exit /b 3

set CMD=%CMDPATH%swsrpdelvol %LOGORG% %LOGREP%
set RET=
for /f "usebackq tokens=*" %%i in (`%CMD%`) do (if "%%i"==%CHECK% set RET=OK)
if not "%RET%"=="OK" echo delete_backup is failed. & exit /b 4

echo delete_backup is successfully completed.
exit /b 0

:CHECK
if %1==%2 set RET=OK
exit /b

CMDpath: Program Directory path that was specified when AdvancedCopy Manager's agent was installed.
DBname: Backup source mailbox database name or public folder database name.
DBORGVolume: Copy source Exchange database volume name.
DBREPVolume: Copy destination Exchange database volume name.
LOGORGVolume: Copy source log volume name
LOGREPVolume: Copy destination volume name.

Note

  • When the same Mailbox Server script is created again, if a configuration removal script was created previously this will not be removed or overwritten.

  • In an error occurs in the execution of the configuration removal script, refer to the ETERNUS SF Messages of this version before taking the action that is required for the corresponding message. After taking the required action, re-execute the script.

Removing a configuration

The configuration removal script that was generated in "8.4.5.1 Creating the Backup Execution Script" can easily be executed manually to remove the configuration that was set. The procedures to remove the configuration manually are shown below.

  1. Copy the script file that was generated in "8.4.5.1 Creating the Backup Execution Script" to any location.

  2. Log into the backup source Mailbox Server as the AdvancedCopy Manager command execution user.

    Information

    Refer to "Creating user accounts for executing command" in the ETERNUS SF Installation and Setup Guide for information on the user which executes the command.

  3. Start the command prompt, and execute the script file that was copied in step 1.

    Example:

    C:\EXCHANGE_SERVER\BACKUP\delete_backup_MailBoxDB01_20121201071234.bat

Information

In the configuration removal script, execute the following commands:

If an error occurs in the execution of the configuration removal script, it may be possible to resolve the error by taking the actions shown below.
For this reason, it is recommended that these actions be performed when the error first occurs.
Execute the following command immediately after executing the configuration removal script to obtain the exit status when the configuration removal script is executed.

echo %ERRORLEVEL%

According to the exit status obtained, take the following actions:

  • Error in swsrpshadowadm_exchange stopqopc (stop QuickOPC): (Exit status: 1)

    Execute the following command:

    cd <Program directory path which installed AdvancedCopy Manager's agent>\bin\
    swsrpshadowadm_exchange stopqopc -dbname <Name of database to be deleted>
    swsrpdbinfo_exchange -delete -dbname <Name of database to be deleted>
    swsrpdelvol <backup_source_volume> <backup_destination_volume>
  • Error in swsrpdbinfo_exchange delete (delete Exchange database information): (Exit status: 2)

    Execute the following command:

    cd <Program directory path which installed AdvancedCopy Manager's agent>\bin\
    swsrpdbinfo_exchange -delete -dbname <Name of database to be deleted>
    swsrpdelvol <backup_source_volume> <backup_destination_volume>
  • Error in swsrpdelvol (delete replica volume information): (Exist status: 3 or 4)

    Execute the following command:

    cd <Program directory path which installed AdvancedCopy Manager's agent>\bin\
    swsrpdelvol <backup_source_volume> <backup_destination_volume>