HA Data storage on SSD

Could somebody give me any guidance on how I can store more than 10 days sensor data using a SSD attached to Raspberry Pi4?