Rule-based assignment backup and restore
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.
Manual backup
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:BASHThe backup file of rule-based assignment is stored under:
/var/nexthink/nxassignment/backup/
Automatic backup
Every day at 22h00, a cron job triggers the automatic backup of the rule-based assignment data. Find the cron job specification under:
/etc/cron.d/nxassignment-crontab
And find the script executed by the cron job here:
/var/nexthink/nxassignment/bin/backup-nxassignment.sh
The script makes a copy of the current assignment data and stores them in the following backup folder with the specified format:
/var/nexthink/nxassignment/backup/nxassignment-backup-<id>.tgz
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:
NUM_OF_BACKUPS=10
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:
BASH
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.
RELATED TASKS
Last updated