N1 Grid Service Provisioning System 5.0 System Administration Guide

ProcedureHow to Back Up a Master Server

Before You Begin

Before you back up the Master Server, any plans or preflights must be stopped, as well as any other tasks, such as comparisons.


Caution – Caution –

Be sure to specify an output directory when you run the backup script. If you do not specify an output directory, the resultant backup file is saved in the N1SPS-home/server/bin directory. If you are uninstalling and then reinstalling the Master Server and the backup file is in this directory, the backup file is deleted. Consequently, you will not be able to restore the Master Server.


Steps
  1. Log into the machine as the user who installed the provisioning system.


    Caution – Caution –

    Do not run the backup script as root. Ensure that you are logged in to the provisioning system's user account.


  2. Change to the directory where the backup script is located.


    % cd N1SPS-home/server/bin
    

    N1SPS-home is the home directory of the application.

  3. Start the backup.


    % ./cr_backup.sh options
    

    The following options are available for use with the cr_backup.sh command.


    Note –

    By default, the resource store, database contents, data files, configuration data, and keystores are backed up. You can skip backing up these components by using the appropriate command-line arguments.


    -b

    Master Server base directory.

    -q

    Quiet. No informative messages are printed.

    -nors

    Skip the Resource Store back up.

    -nodb

    Skip the Database, Plug-in, Custom Task backup

    -noconfig

    Skip the Configuration and Keystore backup

    -nokeystore

    Skip the Keystore backup

    -o directory

    Save the backup file in this directory

    The backup script verifies that you have write permissions for the directory you specified. If you do not have write permissions for this directory, the script generates an error.

    If you do not specify a directory, the files are saved in the N1SPS-home/server/bin directory.

    -z

    Compress the resulting backup file

    -1 logfile

    Write log output to the logfile file instead of the default logfile file.

    -gz

    GZip the resulting backup file if gzip is in PATH.

    -shutdown yes

    Shut down the Master Server without prompting the user.

    -u

    Print this information.

    -h

    Print this information.

    The script warns that if you proceed, the Master Server process will stop. Any tasks, such as searches, plans, and comparisons, that are in progress will also stop.

  4. Type y to proceed with the backup.

    The script shows the progress of the backup and displays the location of the backup file.

    The script restarts the Master Server.