Hello, have you tried about making a systemd service that has a simple script with an infinite loop and a sleep of 1 day? Just enable it with systemctl enable service if you have systemd in your shell. Also you can customise in which phase of the mount you can enable it by default
One alternative would be to store this csv file in an external object storage, like S3. Unless you are using a disk, storing files on the server will use ephemeral storage, and these files will not persist between deploys.
Thank you for your answer. You are right, with object storage the file will not go away between deploys. But I have to renew the file every day. I couldn’t fully understand how I can run a script every 24H to create a file. This is the first thing I need to solve.