The provisioning system includes utilities for completely backing up and restoring a Master Server. These utilities are found in the N1SPS-home/server/bin directory.
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.
Before you back up the Master Server, any plans or preflights must be stopped, as well as any other tasks, such as comparisons.
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.
Log into the machine as the user who installed the provisioning system.
Do not run the backup script as root. Ensure that you are logged in to the provisioning system's user account.
Change to the directory where the backup script is located.
% cd N1SPS-home/server/bin |
N1SPS-home is the home directory of the application.
Start the backup.
% ./cr_backup.sh options |
The following options are available for use with the cr_backup.sh command.
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.
Master Server base directory.
Quiet. No informative messages are printed.
Skip the Resource Store back up.
Skip the Database, Plug-in, Custom Task backup
Skip the Configuration and Keystore backup
Skip the Keystore backup
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.
Compress the resulting backup file
Write log output to the logfile file instead of the default logfile file.
GZip the resulting backup file if gzip is in PATH.
Shut down the Master Server without prompting the user.
Print this information.
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.
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.
Before performing a restore, you must have an installation of the Master Server that contains no data.
Log into the machine as the user who installed the provisioning system.
Stop the Master Server.
%N1SPS-home/server/bin/cr_server stop |
Change to the directory where the backup script is located.
% cd N1SPS-home/server/bin |
N1SPS-home is the home directory of the application.
Start the restoration.
% ./cr_restore.sh options |
The following options are available for use with the cr_restore.sh command.
By default, the resource store, database contents, data files, configuration data, and keystores are restored. You can skip restoring these components by using the appropriate command-line arguments.
Master Server base directory
If you do not use the -b option to specify a directory to in which to restore the backup files, the files are put in the current directory, N1SPS4.1–home/server/bin. If you do not have write permissions for this directory, the software generates an error.
Quiet. No informative messages are printed
Skip the Resource Store restore
Skip the Database, Plug-in, Custom Task restore
Skip the Configuration and Keystore restore
Skip the Keystore restore
Restore the contents of the backupfile file
Write log output to the logfile file instead of the default logfile file
Use the temp_directory directory to save temporary files
Overwrite the existing data during restore
Shutdown the Master Server without prompting the user
Print this information
Print this information
The script verifies that the backup files do not contain any errors. The script warns that if you proceed the Master Server process will stop, if it is not already stopped. Any tasks, such as searches, plans, and comparisons, that are in progress will also stop.
Type y to proceed.
The script warns that any data currently in the databases will be overwritten with the data in the backup files.
Type y to proceed.
The restoration proceeds. The script starts the Master Server.
To manually back up the Remote Agent, stop the agent and copy the contents of the N1SPS-home/data directory to a safe location. To restore the Remote Agent, stop the agent, and copy the contents of the directory that you saved.