Strapi V4 lose these medias files on every deploy on Render

I am not sure what the render.yaml from the template does differently: https://github.com/render-examples/strapi-sqlite/blob/master/render.yaml there are some differences, for example the rsync here: startCommand: rsync -a public/ /data/public/ && yarn start
I used this template and the media files get retained.