When you receive a low disk space warning, there are several steps you can take to free up space. Below is a guide on how to efficiently manage storage in Web Port.
Remove outdated data
If you need to free up space, start by deleting old trend history that is no longer necessary.
Location for Stored Trend Data:
The trend data is located in the "db" folder of your project:
C:\ProgramData\WebPort\db
A file is created for each year and month in the format trend_YYMM.sqlite. You can delete older files to free up space. Alternatively, store these files on an external hard drive if you wish to keep them for future use.
Adjust data storage settings
Web Port, by default, saves all trend history, but you can adjust the settings to retain only the last two years of data. Once data surpasses this period, it is automatically deleted. This helps conserve storage space and prevents future issues.
How to change storage duration:
- Navigate to System Settings -> Server -> Database Settings.
- Adjust the number of days for alarm and trend history:
- The default value is -1 (infinite).
- To save data for two years, enter 730 days.
Example:
- Default alarm history [days] = 730
- Default trend history [days] = 730
Optimize trend settings
To reduce the storage space used by trend data, adjust the trend interval frequency.
How to change trend interval:
- Go to System Settings -> Trend -> Basic Settings.
- Check the trend interval setting. If it is set to 10 or 60 seconds, disk space will fill up quickly.
- We recommend setting the trend interval to 600 seconds (10 minutes) to reduce data volume and save storage space.
Storage Management for Node/Portal
If you use a node (local installation) and a portal/cloud, optimize storage by storing locally for short durations and infinitely in the portal/cloud.
Recommended strategy:
- On the node: Limit storage to 3 months to prevent disk overload, while maintaining an active backup on the node for 3 months.
- On portal/cloud: Save all history without limitation to ensure long-term data availability.
How to change storage duration:
- Go to System Settings -> Server -> Database Settings.
- On the node: Set Default trend history [days] = 90.
- On the portal solution: Set to -1 (infinite storage)
This method optimizes local installation disk space while securely preserving all historical data in the portal/cloud.