Backup OrientDB databases

CA TDM Portal uses OrientDB to store information about your installation. We recommend that you backup these databases periodically, to minimize data loss in the case of software or hardware malfunction.
tdm36
CA TDM Portal uses OrientDB to store information about your installation. We recommend that you backup these databases periodically, to minimize data loss in the case of software or hardware malfunction.
Backup from OrientDB command line
To backup each database from the OrientDB command line, you can follow the instructions at https://orientdb.com/docs/2.2.x/Backup-and-Restore.html.
However, we recommend that you follow the alternative backup instructions below (to backup while OrientDB is inactive), for the following reasons:
  • To backup all databases from the OrientDB command line, it is necessary to open each database individually.
  • TDM creates these OrientDB databases as they are required. Therefore, it is still necessary to check which OrientDB databases exist, when you want to backup these databases.
Backup while OrientDB is inactive
To backup all OrientDB databases at once, you can do so from the Windows command line. Follow these steps:
  1. Open a command prompt window (run
    cmd.exe
    from the Start menu).
  2. Enter the following command in the command prompt:
    net stop OrientDB
    The OrientDB service is inactive.
    Schedule backup of OrientDB databases for a time when TDM is not in use.
  3. Make a copy of the whole OrientDB databases directory, located here in a standard installation:
    C:/ProgramData/CA/CA Test Data Manager Portal/orientdb/databases/
  4. Enter the following command in the command prompt:
    net start OrientDB
    The OrientDB service is active.
You can copy the contents of the directory that you backed up, to the same directory in your new installation of CA TDM Portal.