Setting storage path

HiTogether

Please excuse the beginner question, but I haven’t figured out how to change the default storage path for my data.

I am running InfluxDB v2.6.1 on a Raspberry Pi 4 (RaspiOS) with a usb hard drive attached. The data should be stored on the mounted disk ( /media/disk) in the future.

Where and how can I store this new path?
How can I save the data automatically in regular intervals?

Please do not just refer to the documentation.

Translated with DeepL Translate: The world's most accurate translator (free version)