Using the Repository Snapshot Manager
The Repository Snapshot Manager (RSM) automates the backup and restore procedures described in Backing up a site manually and Restoring a site manually.
Requirements
The backup and restore operations require system downtime. The amount of time needed to backup or restore a site depends on the number of apps, their size, and other supporting content files, such as QVD files and scripts.
Arguments
The synopsis of the RSM is as follows:
RepositorySnapshotManager.exe -<operation> -path={p} -installer={installer_location} -ver={QlikSenseVersion} [-direct] -[supportingContentLocation]={PathToSupportingContent} -[certificatePassword]={c} -[databasePassword]={d} -u={usernameWithDomain} -p={userPassword}
The following table describes the arguments used by the RSM.
Argument | Description | Mandatory |
---|---|---|
-operation | Type of operation (backup or restore) | Yes |
-path | Path to the base backup folder | Yes |
-installer | Folder path on the server on which the Qlik Sense installer resides |
Backing up: No, optional Restoring: Yes |
-ver | Qlik Sense product version (for example, 2.1) | Yes |
-direct |
Include this argument to skip the uninstallation and cleanup activities (meaning it is assumed that Qlik Sense is not already installed on the host). This argument should not be used when restoring a machine where Qlik Sense is already installed. |
No, optional |
-supportingContentLocation | Folder path on the server on which additional artifacts reside | No, optional |
-certificatePassword | Certificate password (if required or desired) | No, optional |
-databasePassword | Database password (if required or desired) | No, optional |
-u | User on the host with administrative privileges for the domain (for example, “COMPANY_DOMAIN\USER”) |
Backing up: No, optional Restoring: If user credentials are not provided, Qlik Sense will be restored and started using the local service account credentials |
-p | Password for the user associated with the domain |
Backing up: No, optional Restoring: If user credentials are not provided, Qlik Sense will be restored and started using the local service account credentials |
Backup procedure
Proceed as follows to backup a Qlik Sense site:
- Make sure that the Qlik Sense site is fully operational.
- Schedule and prepare a system maintenance window with downtime afforded.
- Make sure that the Qlik Sense installer, Qlik_Sense_setup.exe, is present in a folder on the current host.
- Make sure that the version of the software to restore and the Qlik Sense installer is the same.
- Prepare a base backup folder (for example, F:\Qlik\Backups).
- If the Qlik Sense repository database is password-protected, make sure that you have the password available.
- If certificates are password-protected, make sure that you have the password to pass as an argument to the RSM.
- Gather all supporting content. All artifacts (for example, QVD files, scripts, and other files) located in various locations, must be stored in one location on the host on which the RSM is to be executed. Create a folder (for example, F:\Qlik\Additional\Files) and place any requested artifact from any given source in that folder.
- Run the RSM and perform the backup operation.
- Wait for the backup operation to finish and review the log files.
See: Log files
Example: Backing up a site with database password and supporting content (additional files)
RepositorySnapshotManager.exe -backup -path=F:\Qlik\Backups -supportingContentLocation=F:\Qlik\Additional\QVDFiles -databasePassword=dfgg45Fr800
Restore procedure
Proceed as follows to restore a Qlik Sense site:
- Make sure that the Qlik Sense installer, Qlik_Sense_setup.exe, is present in a folder on the current host.
- Make sure that the version of the software to restore and the Qlik Sense installer is the same.
- Determine which backup set (that is, backup folder) to use (for example, F:\Qlik\Backups\.2015-07-02-12.57.10-Z.backup).
- If the Qlik Sense repository database is password-protected, make sure that you have the password available.
- If any supporting content has been backed up, the destination path to that folder must be provided (for example, F:\Qlik\Additional\QVDFilesRestored).
- Run the RSM and perform the restore operation.
- Wait for the restore operation to finish and review the log files.
- Test the Qlik Sense site (for example, open the hub, reload an app, open a sheet, etc).
- If the system is malfunctioning after the restore operation, contact Qlik Support and provide all log files in the logs folder.
Example:
RepositorySnapshotManager.exe -restore -path=F:\bk\.2015-07-02-12.57.10-Z.backup -ver=2.0.1 -installer=F:\QlikSenseInstaller -supportingContentLocation=F:\extra -u="DOMAIN\username" -p="userpassword123"
See: Log files
Example: Restoring a site with database password and supporting content
RepositorySnapshotManager.exe -restore -path=F:\Qlik\Backups\.2015-07-02-11.33.27-Z.backup -supportingContentLocation=F:\Qlik\Additional\QVDFiles -databasePassord=dfgg45Fr800 -installer=F:\Qlik\InstallerExtracted -ver=2.0.1 -u="DOM\MyUserName" -p="mYUSeRpAss100"
Example: Restoring a site without database password, supporting content, or a previous Qlik Sense installation
RepositorySnapshotManager.exe -restore -path=F:\Qlik\Backups\.2015-07-02-11.33.27-Z.backup -direct -installer=F:\Qlik\InstallerExtracted -ver=2.0.1 -u="DOM\MyUserName" -p="mYUSeRpAss100"
Log files
The RSM logs the backup and restore operations in a sub-folder, logs, in the folder in which the RSM executes. If the RSM cannot create the folder in the current working folder, the folder is created in the Windows temp folder (typically C:\Windows\Temp) instead.
Make sure to always check the log folder after a backup or restore operation, no matter if the operation was successful or failed.
Known issues
If "Cannot start service QlikSenseRepositoryDatabase on computer" is reported at the command prompt or in the log file, it is most likely due to problems with the user credentials (that is, the username and password). The following circumstances are known to cause such problems:
- Qlik Sense was installed with user credentials, but is restored without username and password.
- Qlik Sense was installed without user credentials, but is restored with username and password.
- The username or password contains special characters, such as "&%$", and was not quoted during the backup or recovery operation.
- The username or password is incorrect.
- The Qlik Sense installer returned "Unable to create sibling process".
If this happens, contact Qlik Support.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!