Aura tab |
---|
summary | Azure Postgres backup |
---|
params | JTdCJTIydGl0bGUlMjIlM0ElMjJBenVyZSUyMFBvc3RncmVzJTIwYmFja3VwJTIwJTIyJTdE |
---|
|
Creating Dump File Anchor |
---|
| creatingdumpfile |
---|
| creatingdumpfile |
---|
|
To create a data dump file, set the environment variable path for library file by executing the following command: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:{KYVOS_HOME}/data/kyvos/app/kyvospostgres/lib:{KYVOS_HOME}/postgres/liblibrhel8 Create the Azure Postgres dump. NOTE: This must be done when the BI Server is in stop state. Execute the following command: ./pg_dump -c -C --host=<host> --port=<port> --dbname=<database name> --user=<user name> --password=<password> <file name> For example, ./pg_dump -c -C "host=kyvos-postgresserver-1010.postgres.database.azure.com port=5432 dbname=delverepo user=postgres@kyvos-postgresserver-1010 password=delve@123" > Kyvos2023-5-Build026-014-D2023-Nov-14-T12-46-41 Save the Azure Postgres dump otherwise the rollback to this state will not be possible.
Uploading the Dump file If backup of external repo fails during Kyvos upgrade, the Kyvos Manager prompts for the Database dump state of the current repository. In this case, you have two ways: either provide the path of dump file in DFS (abfs) or upload that dump file from Kyvos Manager. Using available permissions in the environment, choose the best option for the user. Login to Kyvos Manager, the following page is displayed. In the message box, you will view the following options: Upload Data Dump File: To upload the data dump file you have created. For example Kyvos2023-5-Build026-014-D2023-Nov-14-T12-46-41. Refer to the Creating dump file section as mentioned above. Storage Account: Provide the path of dump file in DFS (abfs) by using the Choose file option and then upload the dump file.
Click Continue. Kyvos Manager will save the information of the created data dump file.
Aura tab |
---|
summary | Azure Postgres restore |
---|
params | JTdCJTIydGl0bGUlMjIlM0ElMjJBenVyZSUyMFBvc3RncmVzJTIwcmVzdG9yZSUyMiU3RA== |
---|
|
Restoring Database dumpDuring restore failure while Kyvos rollback, Kyvos Manager will show a link to the Manage Kyvos Repository page prompts you to restore the state of DB using the dump file stored in abfs. The name of the dump file that is present at path setup/kyvos-releases-db-state-backups/ inside {ENGINE_WORKS} directory will be displayed in the dialog box (as shown in the below image) and Manage Kyvos Repository page to help you in understanding which dump exactly needs to be restored. You can create a new repository with that dump state or can restore the dump is the same existing repository used in the system. To restore database dump, execute the following command ./psql -U ${user} -h ${hostname} -f ${filename} For example, ./psql -U postgres -h kyvos-postgresserver-63058.postgres.database.azure.com -f databasedump -or- Click Go to Manage Kyvos Repository. You will be redirected to the Manage Kyvos Repository page. Provide the database Server Name details in which the dump is restored, and then click Fetch details. Before saving, click Test connection, and then click Save.
|