Open a support ticket to get assistance from Anaconda if you are upgrading your operating system or plan on migrating your instance of Package Security Manager to a new operating system architecture, as this could severely impact your Package Security Manager instance!
Prerequisites
- pg_dump version 9.6.4+
- pg_restore version 9.6.4+
-
Linux’s open file maximum must be set to 300,000
Increasing the Open File Limit in Linux
To increase the number of files that are allowed to be open at once in Linux, run the following command:
Backing up Package Security Manager
Follow these steps to back up your instance of Package Security Manager:- Open a terminal and connect to your instance of Package Security Manager.
- Enter your installer directory.
-
Create a backup of the
docker-compose.ymland.envfiles. These files contain your server’s custom configurations and are overwritten during reinstallation. -
Using your preferred file editor, open the
docker-compose.ymlfile. -
Locate the
postgres: expose:section of the file.
-
Replace
exposewithports, and replace"5432"with"5432:5432".
- Save your work and close the file.
-
Restart your containers by running the following command:
-
Run the following command from the install directory:
You can find your postgres password here:
<BASE_INSTALL_DIR>/config/postgres/postgres_db_password.txt. By default, the<BASE_INSTALL_DIR>is/opt/anaconda/repo. -
Save the
repo.backup.zipfile to a secure location. -
Revert the changes made to the
postgres: expose:section of thedocker-compose.ymlfile. -
Restart your containers by running the following command:
Restoring Package Security Manager
Follow these steps to restore your instance of Package Security Manager:- Reinstall Package Security Manager.
- Open a terminal and connect to your instance of Package Security Manager.
-
Enter your installer directory (
ate-installer-*). -
Using your preferred file editor, open the
docker-compose.ymlfile. -
Locate the
postgres: expose:section of the file.
-
Replace
exposewithports, and replace"5432"with"5432:5432".
- Save your work and close the file.
-
Restart your containers by running the following command:
-
Copy the
repo.backup.zipfile to your Package Security Manager’s server. -
Run the following command from the install directory:
You can find your postgres password here:
<BASE_INSTALL_DIR>/config/postgres/postgres_db_password.txt. By default, the<BASE_INSTALL_DIR>is/opt/anaconda/repo. -
Overwrite the modified
docker-compose.ymlwith the backup copy to restore your configurations. -
Using your preferred file editor, open the new installation’s
.envfile. -
Manually edit the new installation’s
.envfile to include any custom environmental variables from the backup.envfile.Do not overwrite the new.envfile with the backup. The new.envfile contains passwords that are required for proper functionality. -
Replace these values in the
.envfile with the values from the backup file: -
Run the following command in the install directory:

