Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Restoring Product Data from Backup

Here is how to restore Paragon Active Assurance data from backup files. In this chapter, the backup files are assumed to be named in the same way as in the chapter Backing Up Product Data.


The procedure that follows requires that Control Center has been installed (so that the netrounds database exists) and that the backup files are from the same version of Control Center as the installed version.

  1. Stop all Paragon Active Assurance services that are accessing the database:

  2. Drop the main PostgreSQL database and plugin database:

  3. Recreate the main PostgreSQL database and plugin database:

  4. Restore the main PostgreSQL database and plugin database:

    Setting ON_ERROR_STOP to on will cause psql to exit if an error occurs. For further details, see the PostgreSQL documentation:

    There are several options for the backup format. Please refer to the psql documentation ( if you are using anything other than plain .sql.

    If you backed up the databases in binary format, use these commands to restore them (you will be prompted for a password which is by default "netrounds"):

  5. Restore the plugin tarballs and signing keys:

  6. Restore the OpenVPN keys:

  7. Restore RRD files, either from a tarball or from a snapshot. Compare the chapter Backing Up Product Data. In the tarball case, the procedure is as follows:

  8. Restore the TimescaleDB database:

    The backup directory needs to be stored under /var/lib/netrounds/rrd/timescaledb/pgbackrest/repo/.

    Before doing the restore, copy the .conf files in the data directory /var/lib/netrounds/rrd/timescaledb/data/ to a different location. This allows you to restore any configuration changes performed after the last full backup.

    • To perform an in-place database restore, proceed as follows:

      • Create a directory /tmp/timescaledb_conf.
      • Copy the *.conf files in /var/lib/netrounds/rrd/timescaledb/data to /tmp/timescaledb_conf.
      • Run the command

      • Copy the *.conf files from /tmp/timescaledb_conf to /var/lib/netrounds/rrd/timescaledb/data.
    • To restore a database from host A on a different host B, proceed as follows:

      • On host B, install and configure Control Center according to the Paragon Active Assurance Installation Guide, and enable the metrics service.
      • From host A, copy the contents of /var/lib/netrounds/rrd/timescaledb/pgbackrest to the same directory on host B.
      • On host B, run the command

      • From host A, copy the *.conf files from /var/lib/netrounds/rrd/timescaledb/data to the same directory on host B.
  9. Copy the license files into their original location. (Alternatively, you may download the license files once more from the Juniper EMS Portal and apply them using the ncc license activate command, as explained in the Installation Guide.)

  10. Start Paragon Active Assurance services: