Portal backup and restore

Contents

Portal backup and restore

Manual Backup

To manually back up the Portal:

  1. Log in to Command Line Interface of the Appliance that hosts the Portal.
  2. Execute the following script, noting that you must not add any extension to the name of the target file. The script automatically appends the .tgz extension to the name of the backup file:
    sudo /var/nexthink/portal/backup/backup-portal.sh target-filename
  3. Optional: Back up report archives using the command:
    sudo /var/nexthink/portal/backup/backup-portal.sh --report-archives --file /home/nexthink/target-file

Automatic Backup

Every day at 22h15, a cron job triggers an automatic backup of the Portal. The automatic backup system keeps a history of up to ten backup files. The backup files are located in:

/var/nexthink/portal/backup

The file named portal-backup.tgz is a symbolic link that points to the last backup file in the history. The backup file holds the full database of the Portal and the content of the following directories:

/var/nexthink/portal/conf
/var/nexthink/portal/ngets

Restoring the Portal

To restore the backup of a Portal with VDI information, remember to activate the VDI computation first in the Engines and the target Portal. Restoring a backup with VDI information in a Portal that does not have it activated may result in the corruption of the database.

To restore the Portal state from a backup file:

  1. Log in to Command Line Interface of the Appliance that hosts the Portal.
  2. Execute the restore script:
    sudo /var/nexthink/portal/backup/restore-portal.sh <backup-filename>

The script only restores the database of the Portal, that is, the state of your dashboards and widgets. It does not restore though the configuration files.

The operations described in this article should only be performed by a Nexthink Engineer or a Nexthink Certified Partner.

If you need help or assistance, please contact your Nexthink Certified Partner.
Related tasks