Export-CacheConfiguration
This PowerShell cmdlet enables the user to copy and archive the configuration of the specified cache. It is a critical tool for environment replication, disaster recovery planning, and migrating cache settings across servers. Additionally, it exports the deployed server-side modules to a target directory.
Note
This command is only available in the NCache Open Source. For NCache edition, please see Export-Configuration docs.
Export-CacheConfiguration -Name -Path `
-Server [-Port] `
[-NoLogo]
Examples
- This command generates the configuration file and exports the deployed server-side modules for the defaultcache in the specified directory for full environment replication.
Export-CacheConfiguration -Name defaultcache -Server 20.200.20.11 `
-Path C:\Desktop\config.xml
- This command uses port to generate the configuration file and exports the deployed server-side modules for the defaultcache in the specified directory.
Export-CacheConfiguration -Name defaultcache -Server 20.200.20.11 `
-Path C:\Desktop\config.xml -Port 9803
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-Name* |
<String> |
Specifies the name of the cache for which the configuration file is to be generated. Note: The cache must already exist on the source server. |
- |
-Path* |
<String> |
Specifies the path where the user wants the configuration file to be placed after generation. In case of no path provided, the user will be prompted to provide one. | - |
-Server* |
<String> |
Specifies a server name where the NCache Service is running and a cache with the specified cache-name is registered. | - |
-Port |
<Integer> |
Specifies the server port where the NCache Service is listening. | 9803 |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |