<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# Implementing ICS Backup & Recovery — API & Tool Reference

> Quick reference for tools, commands, and APIs used in implementing-ics-backup-recovery.

## Tools

### `snap7`

PLC backup/restore

**Usage:**
```bash
import snap7; plc.connect(host,0,1)
```

**Key Flags:**
  - upload(): blocks
  - list_blocks_of_type()

---

### `pycomm3`

Rockwell PLCs

**Usage:**
```bash
from pycomm3 import LogixDriver
```

**Key Flags:**
  - get_tag_list()
  - read()

---

### `sha256sum`

Integrity verification

**Usage:**
```bash
sha256sum -c checksums.sha256
```

**Key Flags:**
  - -c: verify
  - Generate: sha256sum file > sums

---

## Integration Notes

- All tools should be run with least-privilege access appropriate to the task
- Log all tool invocations for audit trail
- Validate tool output before acting on results
- Never execute write operations against production ICS without explicit authorization

## See Also

- Parent skill: [OT/ICS Security](../../../SKILL.md)
- NIST SP 800-82: Guide to OT Security
