Usercube-Export-Bacpac
This tool exports the database to a bacpac file, as a backup.
Examples
The following example generates to <C:/identitymanagerDemo>
a bacpac file from the Usercube database with
the given connection string and based on the bacpac template from the SQL folder.
Code attributes enclosed with <>
need to be replaced with a custom value before entering the
script in the command line.
./identitymanager-Export-Bacpac.exe --database "<Usercube>" -s "<data source=.;Database=Usercube;Integrated Security=SSPI;Min Pool Size=10;encrypt=false;>" --bacpac-path 0 --template-bacpac-path "<C:/identitymanagerDemo/SQL>"
Arguments
The list of arguments:
Argument Name | Type | Description |
---|---|---|
--database-connection-string (-s) required | String | Connection string of the database. |
--database required | String | String Name of the database. |
--template-bacpac-path required | String | Path of the empty bacpac file containing the database schema. NOTE: The template is provided among Usercube's artifacts, and can be generated manually by exporting an empty Usercube database as a bacpac file. |
--temp-bacpac-path optional | String | String Path of the temporary folder storing the database's data. |
--bacpac-path required | String | String Path of the generated bacpac file. |
--without-history default value: false | Boolean | true to exclude history data. |
--without-job-instances default value: false | Boolean | Boolean true to exclude job and task instances. |
--without-workflow-instances default value: false | Boolean | Boolean true to exclude workflow instances. |
--without-campaign-instances default value: false | Boolean | Boolean true to exclude access certification campaign items. |
--without-temp default value: false | Boolean | Boolean true to exclude the data of temporary tables. |
--without-all default value: false | Boolean | Boolean true to exclude history data, job and task instances, workflow instances and access certification campaign items. Remember, this option represents the usual use-case. |
--log-level optional | LogLevel | Level of log information among: Verbose; Debug; Information; Warning; Error; Fatal. |