Decommissioning a legacy system with a retention requirement: The IT director checks the archive list on the server before decommissioning.
Korbinian Hermann19.11.202617 min read

Shutting Down Legacy Systems While Meeting Retention Obligations: A Guide for Manufacturing

The server in the basement has been running for years for one purpose only: in case the tax auditor or an OEM auditor asks. The old ERP has no support anymore, the operating system gets no security updates, and the only colleague who still understands the database retires in two years. Still, nobody dares to switch it off. Anyone who shuts down a legacy system without meeting retention obligations risks gaps in the tax audit, the IATF audit and in product liability cases. With a properly archived data stock, however, the legacy system can be retired.

Key Takeaways
  • A legacy system may be shut down if all data subject to retention has first been transferred completely, immutably and in a machine evaluable form to an archive or successor system (Section 147(2) of the German Fiscal Code, GoBD margin no. 142).
  • In Germany, books and annual financial statements must be kept for ten years, accounting vouchers for eight years and commercial letters for six years (Section 147(3) AO, Section 257(4) HGB).
  • After a system change, a machine evaluable data carrier is sufficient for the tax authority’s data access from the sixth calendar year onward, provided no tax audit has started (Section 147(6) AO).
  • Production data is subject to additional periods: medical devices at least ten years, implants 15 years (Article 10(8) MDR), automotive records at least product lifetime plus one calendar year (IATF 16949, 7.5.3.2.1).
In a nutshell

Shutdown allowed

If the data stays as evaluable as if it were still in the production system.

Backup is not enough

A dump can neither be read nor evaluated without the old software.

The safe way

Legacy system archiving with a retention catalog, proof of completeness and controlled deletion.

White paper: Why a backup has long been not enough

Shutting down a legacy system while meeting retention obligations: quality manager reconciles archived inspection data

 

01 · Definition

What does it mean to shut down a legacy system and still meet retention obligations?

Shutting down a legacy system means permanently decommissioning an application including its database, server and licenses. In manufacturing, this typically concerns replaced ERP systems, old MES installations, test bench databases, screwdriving data servers or in house quality applications. Still meeting retention obligations means that every piece of information subject to retention from this system remains available, unchanged and evaluable until the end of its statutory, normative or contractual period.

Legacy system archiving is the transfer of the data subject to retention from a legacy system into an audit proof archive that keeps this data readable and evaluable without the original software. It is also known as application retirement or decommissioning. In Germany, the legal benchmark is set by Section 147(2) no. 2 AO: electronically retained records must be available at any time throughout the entire period, readable without delay and machine evaluable.

A retirement project only becomes risky if the server goes off before anyone has proven that the data exists completely and in an evaluable form outside the system. Once this proof exists, the legacy system can be shut down as planned.

10 years

Books, inventories, annual financial statements and organizational documents

Source: Section 147(3) AO, Section 257(4) HGB

8 years

Accounting vouchers since 1 January 2025

Source: Section 147(3) AO, Section 257(4) HGB

5 calendar years

of full data access after a system change, then an evaluable data carrier is sufficient

Source: Section 147(6) AO

15 years

Technical documentation of implantable medical devices

Source: Article 10(8) MDR

 

02 · Retention periods

Which retention periods apply to data from legacy systems?

Which period applies depends on the content of the data. A single ERP or MES often contains data with five different periods: accounting vouchers, commercial letters, production orders, inspection results and batch data. In the retirement plan, the longest applicable period counts for each data stock.

Retention periods for typical legacy system data in manufacturing
Data type Minimum period Legal basis Start of period
Books, inventories, annual financial statements, management reports, work instructions 10 years Section 147(3) AO, Section 257(4) HGB End of the calendar year of the last entry or preparation
Accounting vouchers (invoices, cost documents) 8 years Section 147(3) AO, Section 257(4) HGB End of the calendar year in which the voucher was created
Commercial and business letters received and sent 6 years Section 147(3) AO, Section 257(4) HGB End of the calendar year of receipt or dispatch
Technical documentation of medical devices 10 years, implants 15 years Article 10(8) MDR Placing of the last device on the market
PPAP, tooling, design and process records (automotive) Product lifetime plus 1 calendar year, unless otherwise specified by the customer or a regulatory agency IATF 16949, section 7.5.3.2.1 End of series production and spare parts supply
Evidence for product liability cases (products from 9 December 2026) Claims expire after 10 years, after 25 years for latent personal injury Directive (EU) 2024/2853 (transposition into national law by 9 December 2026) Placing on the market or putting into service

Two rules push the end of the period back. First, under Section 147(4) AO every period only starts at the end of the calendar year in which the record was created. Second, under Section 147(3) AO the tax retention period does not expire as long as the assessment period for the taxes concerned is still open. This suspension of expiry applies, for example, during ongoing tax audits or appeal proceedings.

In the automotive industry, contractual periods can be well above the standard. In published customer specific requirements (CSR), Mercedes Benz requires PPA documents to be archived for 15 years after the end of series production, referring to VDA Volume 1. According to its CSR, General Motors even requires production lifetime plus 50 years for PPAP records. Anyone retiring an MES or an inspection database must therefore include these customer requirements in the retention catalog.

Note on the 2025 reduction

Since 1 January 2025, the retention period for accounting vouchers in Germany has been eight instead of ten years (Section 147(3) AO, Section 257(4) HGB). This changes nothing for production data. Before every deletion, check whether the same record also falls under IATF 16949, MDR or an OEM requirement.

 

03 · Backup

Why does a backup not meet retention obligations?

Many teams first plan the shutdown like this: back up the database, switch off the server, put the backup on the shelf. That leaves three requirements unmet. A database dump cannot be read without the matching database version, the schema and the application logic. It is not machine evaluable because queries are only possible after a full restore. And it is not provably immutable because nobody can prove that the content has stayed the same since the backup.

The German tax authority sets the benchmark in the GoBD (Federal Ministry of Finance letter of 28 November 2019, last amended on 14 July 2025). If data is no longer kept in the production system after a system change, it must be transferred to a system that allows equivalent evaluations.

GoBD margin no. 142

“The new system must allow the same evaluations of the data subject to recording and retention, in quantitative and qualitative terms, as if the data were still in the production system.”

Paraphrased from GoBD, margin no. 142

If this transfer fails, the GoBD require the original hardware and software of the production system to be kept for the duration of the retention period. That is why servers nobody maintains keep running in many plants. The article Backup vs. Archiving covers the difference in detail.

Backup, database dump and archive compared
Criterion Backup Database dump Audit proof archive
Purpose Recovery after data loss Technical copy of a database Retention over the statutory period
Readable without old software No No Yes
Machine evaluable (Section 147(2) AO) Only after restore Only after import At any time
Immutability provable No, gets overwritten No Yes, with checksums and log
Targeted deletion after the period ends Not possible Only via new export Possible per record

 

04 · Data access

What does Section 147(6) AO require when systems change?

During a tax audit, the German tax authority can access electronically created records in three ways under Section 147(6) AO. In practice, these access types are called Z1, Z2 and Z3. All three must still work after the legacy system has been shut down.

Z1 · Direct access

The auditor views the stored data and uses the system for the audit. The archive needs read only access with search and filter functions.

Z2 · Indirect access

The company evaluates the data by machine according to the auditor’s specifications. The archive must create evaluations without the old software.

Z3 · Data provision

The data is handed over in a machine evaluable format. An export including a structure description is required.

The five year rule after a system change

Section 147(6) AO now explicitly contains a relief that is relevant for every retirement project. If a company changes its data processing system or offloads data subject to retention from the production system, it is sufficient to keep the data exclusively on a machine readable and evaluable data carrier once the fifth calendar year after the changeover has ended. The condition is that no tax audit has started by then.

Example: ERP changeover in 2026

2026

Changeover to the new ERP

2027 to 2031

Full data access Z1 and Z2 required

From 1 Jan 2032

An evaluable data carrier is sufficient

Until end of 2033 / 2036

Voucher from 2025 / annual statements for 2025 remain subject to retention

Annual financial statements for 2025 prepared in 2026 therefore remain subject to retention until the end of 2036, and an accounting voucher from 2025 until the end of 2033, even though the data carrier is sufficient for tax access from 2032.

Limits of the five year rule

The rule only shortens the tax access path, not the retention period itself. It does not apply to inspection data under IATF 16949, technical documentation under the MDR or evidence in product liability cases. It also does not apply if a tax audit has already started. Coordinate the timing of the shutdown with your tax advisor.

White paper

Why a backup has long been not enough

The white paper explains why a backup does not meet retention obligations and what audit proof archiving must deliver.

Download the white paper for free

 

05 · Options

What are the four options for legacy data?

There are four options for the data of a legacy system. Each meets retention obligations under certain conditions. The legacy system can only be shut down after a full migration or archiving.

Four options for legacy data when retiring a system
Option Description Meets retention obligations Legacy system can be shut down Typical risk
1. Continued operation Legacy system runs in read only mode until the period ends Yes, as long as it runs No Missing security updates, loss of knowledge, license costs
2. Full migration All historical data moves to the successor system Yes, with proven completeness Yes High mapping effort, legacy data burdens the new system
3. Freezing Legacy system is virtualized and started when needed Limited Only partly If the virtual machine no longer starts after years, access is lost
4. Legacy system archiving Data including context moves into an audit proof archive, then shutdown Yes Yes Requires a clean retention catalog and proof of completeness

Full migration sounds simplest but is rarely economical in manufacturing. Historical inspection values, screwdriving curves and batch data often do not fit the successor system’s data model and permanently enlarge its database. Freezing does not solve the problem either, because a virtual machine also needs a working operating system, licenses and staff who can operate the application. Legacy system archiving separates the data from the application. The legacy system can be shut down without burdening the successor system with historical data.

 

06 · Approach

How do you shut down a legacy system in six steps?

The six steps apply to an ERP just as much as to an MES or a test bench database.

01

System inventory

Record all applications, databases, interfaces and user groups of the legacy system. Clarify which processes still read or write the data.

02

Data classification and retention catalog

Assign every table and every document to a data type and store the longest applicable period from tax and commercial law, IATF 16949, MDR, product liability and customer requirements.

03

Define archive format and context

Archive not only raw data but also schema, relationships, master data and report logic in a software independent format such as XML or CSV with a structure description.

04

Prove completeness

Document record counts, totals and checksums before and after the transfer. This reconciliation proves that nothing was lost and nothing was changed.

05

Govern access and procedural documentation

Define who in the business unit, accounting or audit may access which data. Describe the procedure in the procedural documentation according to the GoBD.

06

Shut down and delete after the period ends

Only shut down the legacy system after a successful reconciliation. Delete archived records as soon as their period has expired and no suspension of expiry applies.

Step four decides whether the archive will stand up to an audit. An auditor or tax auditor wants to see proof that all data arrived in the archive. A comparison of records per table before and after the transfer, supplemented by checksums, answers this question in a few minutes.

Step six also concerns data protection. Article 5(1)(e) GDPR requires personal data to be stored only as long as necessary for the purpose, and Article 17 GDPR governs the obligation to delete. Worker IDs, login data and personnel numbers in production data fall under this. An archive must therefore be able to delete individual records after their period ends. The article on the GDPR deletion concept for manufacturing companies shows what such a concept looks like.

 

07 · Mistakes

What are the five most common mistakes when retiring systems?

01

Only accounting is consulted

Everyone knows the tax periods, but often only quality management knows the periods from IATF 16949, MDR and OEM requirements. Involve QM and production from the start.

02

Raw data is backed up without context

Nobody will understand a table with column names like FELD_17 ten years from now. Archive master data, key relationships and the meaning of the fields as well.

03

The five year rule is overstretched

The data carrier under Section 147(6) AO only replaces tax access. For an OEM audit or a recall, you still need fast, targeted queries.

04

Proof of completeness is missing

Without reconciling record counts and checksums, you cannot prove that the archive matches the legacy system.

05

The shutdown date comes before the archive test

Play through typical auditor requests, such as all inspection results for a serial number, before switching off the server.

Most of these mistakes can be avoided if quality management, accounting and IT share responsibility for the project. They often only become visible years after the shutdown, in an audit or a liability case.

 

08 · Case study

Case study: how do seven systems become one archive?

A project reported by the German IT magazine Computerwoche shows what legacy system archiving looks like on a large scale. During the wind down of the drugstore chain Schlecker, CSP prepared seven different systems for shutdown, including a Navision ERP, a heavily customized AS/400 system, an intranet and a Teradata data warehouse. According to the report, after the current situation had been analyzed, a separate database archive with forms, queries and reports for later research was created for each system.

7 systems

Navision ERP, AS/400, intranet, Teradata data warehouse and other systems of the wind down.

1 interface

The data of all seven systems can be searched in a uniform way.

0 legacy systems

None of the original systems has to keep running for data access.

In manufacturing, this works the same way for MES, test benches and quality databases. The KLS Martin Group success story shows how a medical technology manufacturer secures its application data with CHRONOS.

 

09 · Solution

How does CHRONOS implement legacy system archiving?

CHRONOS is the database archiving module in the CSP Manufacturing OS. The software was developed from 2004 to 2006 in a research cooperation with the computer science faculty of Landshut University of Applied Sciences and transfers data from relational databases into an archive of text and XML files. This keeps the data readable independently of the vendor of the original database.

Shut down

CHRONOS archives the data subject to retention from a legacy system, after which the application and database can be retired.

Targeted retrieval

Individual records can be retrieved and evaluated directly from the archive without restoring the entire database.

Audit proof

Long term archiving is designed for the requirements of the GoBD, MDR and IATF 16949.

No IT ticket

Quality management and audit access archived data themselves.

The article Archive access without an IT ticket describes how access without an IT ticket is organized. In ongoing operation, the BMW Group uses CHRONOS for monthly archiving to reduce storage costs. When a system is retired, the archive takes over retention completely and the legacy system can be switched off. Find out more on the CHRONOS data archiving page.

Next step

Shut down legacy systems, meet retention obligations

The white paper explains the legal and technical framework. In a live demo, you will see how CHRONOS takes over legacy data and keeps it searchable.

Download the white paper for free Book a live demo

 

FAQ

Frequently asked questions

How long must a legacy system be kept after a system change?+

The legacy system itself does not have to be kept if its data subject to retention has been transferred completely and in a machine evaluable form to an archive or successor system (GoBD margin no. 142). If that is not possible, hardware and software must be operated until the end of the longest retention period, which is usually ten years (Section 147(3) of the German Fiscal Code, AO).

Is a data carrier enough for a tax audit after five years?+

Yes, for the tax authority’s data access. Under Section 147(6) AO, a machine readable and evaluable data carrier is sufficient once the fifth calendar year after the changeover or offloading has ended, provided no tax audit has started yet. The retention period itself is not shortened.

May I shut down a legacy system while the retention period is still running?+

Yes, if the data has been archived in an audit proof way beforehand and remains available, readable and machine evaluable there throughout the entire period (Section 147(2) no. 2 AO). Document the completeness of the transfer and describe the procedure in the procedural documentation.

What is legacy system archiving?+

Legacy system archiving is the transfer of all data subject to retention from a legacy system into an audit proof archive that keeps the data readable and evaluable without the original software. It is the prerequisite for shutting down a legacy system while still meeting retention obligations.

What is the difference between application retirement and data archiving?+

In ongoing data archiving, an active system offloads old data and stays in operation. In application retirement, the application is shut down completely after its data has been archived. Both use the same archiving technology but pursue different goals: relief in the first case, shutdown in the second.

Does the five year rule also apply to production and quality data?+

No. The rule in Section 147(6) AO only concerns the tax authority’s data access. Production data is subject to its own periods, for example product lifetime plus one calendar year under IATF 16949 section 7.5.3.2.1 or at least ten years under Article 10(8) MDR.

When must archived legacy data be deleted?+

Personal data must be deleted as soon as no retention period applies anymore (Article 5(1)(e) and Article 17 GDPR). Tax relevant data may only be deleted once the assessment period has also expired (Section 147(3) AO). An archive should therefore be able to delete individual records exactly when their period ends.

Korbinian Hermann
CEO, CSP Intelligence GmbH
Responsible for strategy and innovative software solutions for the manufacturing industry.

RELATED ARTICLES