The short answer
Long-Term Storage
Long-term storage starts with a retention policy that says, for each class of data, how long it is kept and at what resolution, driven by the record-keeping rules that apply to a water system and by the operational value of history for trending and investigation. The historian keeps recent data online at full resolution, rolls older archives to cheaper storage, and may downsample very old data to aggregates while keeping raw data for the tags that regulations or investigations need. Archive files are backed up off the server and off site, re-registered after any restore, and exported periodically in a plain format so that the data survives a change of historian vendor or version. Once a year someone reads an archive from the beginning of the retention period and confirms it opens.
Key points
- Retention is a policy per data class, written down, that the historian configuration implements.
- Regulatory records for a water system run five to ten years; keep the tags that back them at least that long.
- Tier the storage: recent data fast and online, old data cheap and slower, a copy off site.
- Downsample old data only where the policy allows, and never the compliance tags.
- Archive files are the data; back them up and re-register them after a restore.
- Export compliance data in a plain format on a schedule; the historian will be replaced one day.
Retention by class
| Data class | Examples | Retention | Resolution |
|---|---|---|---|
| Compliance measurements | Turbidity per filter and combined effluent, chlorine residual, pH, flows reported to the regulator | The regulatory record period, commonly five years for turbidity and microbiological records and ten for chemical, longer where the state requires; treat it as permanent | Full resolution as collected; never downsampled |
| Process values | Levels, pressures, flows, analyzer readings used for operation | Two to five years online, longer in archive | Full resolution online; aggregates acceptable beyond the online period if the policy says so |
| Equipment data | Run times, starts, currents, vibration, drive data | Life of the equipment | Aggregates and events |
| Alarm and event journal | Alarms, acknowledgments, operator actions | Five years or longer; small in size | Every record |
| Diagnostics | Communication statistics, server health, scan times | One to two years | Aggregates |
| Audit and security logs | Logins, configuration changes, firewall logs | As the security policy requires, often a year or more | Every record |
The policy is a document, owned by the utility, that names each class, the retention, the resolution, the storage tier, and the regulation or reason behind it. The historian configuration is derived from it, and an audit compares the two. Without the document, retention is whatever the integrator set at installation, and nobody knows whether the turbidity from ten years ago is still there until the regulator asks.
Tiers
- Online
- Recent archives on the historian server storage, fast, full resolution, the data trends and reports use daily. One to a few years.
- Near-line
- Older archive files moved to larger, slower, cheaper storage that the historian can still read, attached when needed. Several years.
- Offline copy
- A backup of every archive file, off the server and off site, on media or a service that will still be readable in ten years. The whole retention period.
- Exported records
- The compliance data, and anything else the policy names, exported to a plain format such as comma-separated text on a schedule and kept with the offline copy, independent of any historian software.
Downsampling
Very old process data is rarely examined sample by sample; a trend of a tank level five years ago is looked at by the day, not by the minute. Downsampling stores hourly or daily averages, minimums, and maximums for old data and discards the raw samples, which cuts storage by orders of magnitude. It is a policy decision per class, and it is never applied to the compliance tags or to anything whose raw record might be needed in an investigation. Where it is applied, the aggregates are computed before the raw data is removed, stored as their own tags, and checked against the raw data on a sample before the raw data goes.
Archive files
A historian stores its data in archive files that it creates, fills, closes, and indexes itself, and the files are the only place the data lives. They are backed up as files on a schedule, kept off the server, and copied off site. When a historian is restored from backup, the application comes back with its configuration and its list of archives, and the archives themselves have to be present at the paths it expects or be registered with it; a restore that forgets the archives is a working historian with no past. The procedure for a restore includes the archive step, and the annual restore test includes opening a trend from the oldest archive.
Outliving the software
Historians are replaced: a vendor discontinues a product, a utility changes platforms, a version upgrade cannot read the old files. Data that exists only in a proprietary archive format is at the mercy of that. The defense is export: the compliance data and whatever else the policy names, written on a schedule to a plain, documented format with the tag names, timestamps in universal time, values, units, and quality, and kept with the offline copies. When the historian is migrated, the vendor tools move what they can, the export covers the rest, and the retention clock does not restart.
- 1
Write the policy
Classes, retention, resolution, tier, and the rule behind each, signed by the utility.
- 2
Configure the historian to it
Retention, archive roll, storage locations, downsampling jobs, and export jobs.
- 3
Back up the archives
Scheduled file backup off the server and off site, monitored for completion.
- 4
Export the records
Compliance data to plain files on a schedule, checked for completeness.
- 5
Test annually
Restore an archive from the oldest year to a test historian and open a trend. Read an exported file with a spreadsheet.
- 6
Audit
Compare the configuration with the policy and the storage with the retention; correct the drift.
Frequently asked questions
- How long must turbidity records be kept?
- Federal drinking water record rules require turbidity and microbiological analysis records to be kept for at least five years and chemical analysis records for ten, and states may require longer. Treat the historian tags that back those records as permanent, at full resolution, with an exported copy.
- Is cloud storage acceptable for archives?
- For the offline copy and the exported records, cloud object storage is a reasonable off-site tier, subject to the utility security policy and to keeping a local copy as well. The online historian and its live archives stay on the control network; the cloud receives a copy through the DMZ, one direction.
- Can old data be deleted to save disk?
- Only what the policy says can be deleted, after its retention has passed, and never the compliance classes. Storage is cheap compared with the cost of a missing record. If disk is short, add disk or move old archives to near-line storage; do not purge.
- What format should the export use?
- One that a person can read with common tools in ten years: comma-separated text with a header, one file per tag or per period, timestamps in universal time in a standard format, values, units, and quality flags. Compressed if large. Document the layout in the policy.
Related topics
- Historian ArchitectureHow process history is collected, stored, and served: the collector, the archive, and the client layers, where the historian sits relative to SCADA and the DMZ, single-server and tiered designs for a utility, the store-and-forward buffer that survives outages, and the sizing that decides how many years fit on a disk.
- Historian CompressionHow historians store years of data on a disk: exception deadbands at the collector, swinging door compression at the archive, what each discards and what it keeps, the settings that turn a trend into a staircase, lossless alternatives, and how to check that the compressed data still tells the truth.
- Reporting from the HistorianTurning history into the reports a utility must produce: the monthly operating report, compliance reports for the regulator, daily operator summaries, pump run and energy reports, the calculations behind daily minimums, maximums, and totals, handling bad quality and gaps, and building reports once so they run every month without an engineer.
- Historian ProblemsHow a historian goes wrong and how to find each fault: gaps, wrong values, detail never stored, disks that fill, slow queries, backfill that never arrives, and unreadable archives, with the collector, queue, configuration, and storage checks that locate it.
- What to Back Up in a Control SystemWhat a utility must be able to restore after a failure or attack: controller programs and firmware, SCADA and historian, HMI panels, drive and instrument parameters, network configurations, licenses, installers, and documentation, and how often each changes.
- SQL IntegrationConnecting SCADA and historian data to relational databases: why a utility does it, the methods, a schema that handles time series, the query patterns for totals and reports, the mistakes that flood a database or stall a server, and security.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.