Skip to main content
Version: 8.1

Export packages from the database using WorkspaceConsole

Level: intermediate
Example

Export the packages of the Default workspace to a directory.

  • C:\creatio is the Creatio installation directory.
  • C:\SavedPackages is the package export directory.
  • C:\Logs is the export directory of the operation log file.

1. Configure the command for the package export from the database

  1. Create a *.bat or *.cmd Windows batch file in a text editor.

  2. Add the command that runs the utility to the file.

    Command that runs the utility
    C:\creatio\Terrasoft.WebApp\DesktopBin\WorkspaceConsole\Terrasoft.Tools.WorkspaceConsole.exe -operation=SaveDBContent -contentTypes=Repository -workspaceName=Default -destinationPath=C:\SavedPackages -webApplicationPath=C:\creatio -confRuntimeParentDirectory=C:\creatio\Terrasoft.WebApp -logPath=C:\Logs
    pause

    Save the batch file.

2. Export the package from the database

To export the package from the database, double-click the batch file name.

This will open the console that will output the execution process of the operation specified in the corresponding WorkspaceConsole command.

As a result, the utility will export the *.gz package archives of the Default configuration to the C:\SavedPackages directory.