Backing up your applications prior to changes in your environment, such as server updates or migrations,  is a common best practice. You should also consider backing up your DTP-related data prior to upgrading DTP or DTP Enterprise Pack. Review the Upgrade Scenarios section for if you are backing up DTP Enterprise Pack as part of your Parasoft upgrade process.

Creating a Backup Archive 

  1. Open a command prompt and navigate to the DTP Enterprise Pack installation directory.
  2. Run the following command to stop DTP Enterprise Pack processes:

    dtpservices.bat stop

  3. Run the following command to create a backup archive:

    dtpservices.bat backup --target <dir> --output <dir>
     
    The --target and --output arguments are optional.

    The optional --target argument specifies the directory you want to backup. If not defined, the parent of the current directory and its children are backed up.

    The option --output argument specifies the destination directory for the backup. If not specified, the backup archive will be placed in the parent of the current directory.

The following files and directories are backed up:

  • All service flows
  • All installed marketplace artifacts
  • All DTP add-ons
  • Logs directory (without pid)
  • Databases

Files stored in the Common, Components, Examples, Parameters, and Sample Widgets built-in directories are backed up, but any JSON files stored in those directories are not restored on upgrade.

Restoring a Backup Archive

DTP Enterprise Pack ships with a script that you can execute to perform administration tasks for Extension Designer, Policy Center, and the Enterprise Pack database. The script includes a process for restoring backup archives.

  1. Run the following command to stop DTP Enterprise Pack processes:

    dtpservices.bat stop
     
  2. Run the following command to restore a backup archive:

    dtpservices.bat restore --src <your-backup-file.zip> --target <dir>

    The --src argument is required and specifies the archive you want to restore.

    The optional --target argument specifies the directory you want to restore the archive to. If not specified, the archive will be restored in the current directory.
  • No labels