If you activated rule-based Collector assignment on your setup, learn here how to make a backup of the assignment data stored in the Portal appliance.
To manually back up the rule-based assignment data:
Log in to the CLI of the Appliance that hosts the Portal.
Run the backup script. The script automatically adds the .tgz extension to the name of the file:
sudo /var/nexthink/nxassignment/bin/backup-nxassignment.sh target-filename
The backup file of rule-based assignment is stored under:
Every day at 22h00, a cron job triggers the automatic backup of the rule-based assignment data. Find the cron job specification under:
And find the script executed by the cron job here:
The script makes a copy of the current assignment data and stores them in the following backup folder with the specified format:
Specify the maximum number of local backups that are kept in the directory by editing the first variable in the script
backup-nxassignment.sh. By default, up to ten backups are kept simultaneously:
If external backups have been activated, the automatic script copies the daily backup to external storage right after generating it.
Restoring the assignment rules
Restore the rule-based assignment data either to the same or to a different Appliance from which you made the backup.
To restore the assignment data from the backup:
Log in to the CLI of the Portal Appliance where you want to restore the assignment data.
Copy the backup file into the Portal Appliance using your favorite SCP tool.
Run the restoring script:
sudo /var/nexthink/nxassignment/bin/restore-nxassignment.sh \
Although rule-based assignment data can be restored independently of Portal data, if both need to be restored, we recommend to restore the Portal first.