We have provided two files listed and described below which will allow you to automate or manually backup and restore your Aginity Team catalog.
The backup script
backup.sh will perform and compress a backup of the Aginity Team Catalog to the /tmp/ directory on your O/S. It will append the date to the end of the file created and should be named in this pattern. aginity_backup_%m_%d_%Y.zip
Before running the backup.sh script you will need to edit it and provide the following variables.
- DESTINATION ~ if you do not want to use the default /tmp/
- TOKEN ~ this value is the encryption key for the database. To find out the value of it run this command.
sudo cat /etc/aginity-team/service.conf
- H2PATH ~ Unless you modified the installation directory from the default you should not need to change this.
- DBPATH ~ Unless you modified the installation directory from the default you should not need to change this.
When running a backup the Aginity Team server process will be stopped then restarted when complete.
If you want to schedule the backup and automate it we recommend scheduling using
Crontab: Crontab Reference Guide
To restore to an instance of the backup follow these instructions.
You’ll need to set the variables within the restore.sh to match what is in the backup.sh.
First download the restore script
restore.sh. Next you will provide the file name of the backup you want to restore in the
- SOURCE variable.
Now run the script and it will automatically re-start Aginity Team when complete.