Factory hall with a press line and a grey control cabinet on a column, its door open to the terminal rails

MFG · Manufacturing

Learn OT · Lesson 7.5

Backing up controller logic

Module 7 · Protecting a running plant5 min readBeginner · free

The most valuable file in many plants is a PLC program nobody has a current copy of.

In short

Every controller program, HMI project, drive parameter set and network device configuration should have a current, tested backup stored off the plant network. Comparing the backup with what is actually running, on a schedule, also reveals unplanned changes, a lesson the field took from Stuxnet.

What to back up

  • PLC and DCS programs (with comments, not just the compiled logic).
  • HMI and SCADA projects.
  • Safety system configurations.
  • Drive parameters.
  • Switch, router and firewall configurations.
  • Engineering workstation images and licence details.

Where to keep them

At least one copy offline or off the plant network, with versions, so a ransomware event or a fire doesn't take the backups with it.

Restore one to prove it

Restore one to a spare controller or test system once a year. A backup nobody has restored is a hope, not a plan.

The bonus: change detection

Compare the running program with the last approved backup on a schedule. Any difference is either a documented change or something to investigate (Lesson 5.1).

On a real site

A bottling line's PLC fails on a Friday night. The plant has a backup, but it's two years old and missing the last three recipe changes. The line runs, but slowly, until the machine builder's engineer arrives on Monday. Afterwards, backups become monthly and are checked against the running program.

Easy to mix up

"The machine builder has a copy." They might, but it may be outdated, and you need it at 2 a.m., not on Monday.

Check yourself

Name four things to back up besides PLC programs.

Any four of: HMI/SCADA projects, safety configurations, drive parameters, network configurations, workstation images.

Why keep a copy off the plant network?

So ransomware or a site event doesn't destroy the backups too.

How do you know a backup works?

By restoring it to a test system periodically.

Questions people ask

How do you back up a PLC program?

Upload it with the vendor's engineering software and store it, with versions, off the plant network.

How often should PLC programs be backed up?

After every change and on a regular schedule, with periodic restore tests.

Why compare backups with running programs?

To detect unplanned or unauthorised changes.

Go deeper · from our learning shelf

ICS Virtual Learning Portal CISA · free
Short self-paced courses from the US agency, around an hour each.

Introduction to the World of OT/ICS TryHackMe · free room
How OT works, hands-on, in your browser.

Engineering-Grade OT Security: A Manager's Guide On our bookshelf · Andrew Ginter
How to decide how much protection different systems need, using engineering thinking about consequences.

See the whole learning shelf: free courses first, then the certificates worth paying for →

Useful? Send it to someone who works near a plant room. Learn OT is free to read, share and teach from.