https://prefect.io logo
Title
a

Aniruddha Sengupta

03/21/2022, 1:14 PM
Hello all, hope that you are well. I am currently running a Prefect server inside a virtual machine along with an agent which runs flows and tasks. When I kill the server and the agent and then restart it, I see that my previous flow data has been wiped. Is there a way to ensure that this persists? Is there a way to ensure that if I kill my server and agent and then restart them, the data about flows that have been run will remain? Thanks, Aniruddha
k

Kevin Kho

03/21/2022, 1:41 PM
Hey @Aniruddha Sengupta, yep see this
a

Anna Geller

03/21/2022, 1:41 PM
Yes, there is! You need to either use some external Postgres database or mount a Postgres volume to the Postgres container. You can do that easily by using
prefect server start --use-volume
a

Aniruddha Sengupta

03/24/2022, 10:33 AM
Thank you both! ❤️