Skip to main content
Solved

Consistent PostgreSQL Backups using K10


I did a research for consistent PostgreSQL backups with Kasten K10 and found:

https://docs.kasten.io/latest/kanister/postgresql/install_app_cons.html

Application Consistent PostgreSQL Backup

You described there to use a Kanister pre-hook (“pg_start_backup”) and post-hook (“pg_stop_backup”).

 

Afaik, that alone will not create a consistent backup. You also need any generated archived WAL file between. Archiving must be enabled (archive_mode=on), archived WAL files must be backuped too, therefore.

 

I did not find anything about how to backup archived WAL files. How will you handle them?

 

Thanks, Markus

Best answer by jaiganeshjk

M.Z, Thank you for opening this topic.

The blueprint that you see in our documentation is just a sample and it can be taken as a baseline and developed further. 
It is just an example on how to run sql commands against your database. You can add more steps/checks as per your requirement in your environment.

Below is what we say in the documentation as well https://docs.kasten.io/latest/kanister/postgresql/install_app_cons.html

The PostgreSQL backup example provided above serves as a blueprint template for achieving application-consistent backups. Please note that these examples may need to be modified for specific production environments and setups. As a result, it is highly recommended to carefully review and modify the blueprints as needed before deploying them for production use.

View original
Did this topic help you find an answer to your question?

2 comments

Madi.Cristil
Forum|alt.badge.img+8
  • Community Manager
  • 617 comments
  • September 27, 2024

jaiganeshjk
Forum|alt.badge.img+2
  • Experienced User
  • 274 comments
  • Answer
  • September 27, 2024

M.Z, Thank you for opening this topic.

The blueprint that you see in our documentation is just a sample and it can be taken as a baseline and developed further. 
It is just an example on how to run sql commands against your database. You can add more steps/checks as per your requirement in your environment.

Below is what we say in the documentation as well https://docs.kasten.io/latest/kanister/postgresql/install_app_cons.html

The PostgreSQL backup example provided above serves as a blueprint template for achieving application-consistent backups. Please note that these examples may need to be modified for specific production environments and setups. As a result, it is highly recommended to carefully review and modify the blueprints as needed before deploying them for production use.


Comment