Docs/Reference/Layer

Layer Reference

Commands for capturing and restoring container filesystem state.


create layer

reel --agent create layer --pod <pod> [--container <container>] -n <namespace>

Create a layer (filesystem diff) from a running container.

list layers

reel list layers [flags]
FlagDescription
-n, --namespaceNamespace
-A, --all-namespacesAll namespaces
-o, --outputOutput format: table, json, yaml

export layer

reel --agent export layer --pod <pod> [--container <container>] -n <namespace> [flags]
FlagDescription
-o, --outputDestination file
--compressCompression: none, fast, default, better, best

restore layer

reel --agent restore layer <layer-id> <new-pod-name> -n <namespace>

Create a new pod from a stored layer.

rollback layer

reel --agent rollback layer <layer-id> deployment/<name> -n <namespace>

Rollback an existing deployment to a layer's filesystem state.

delete layer

reel delete layer <layer-id>

Delete a single layer capture by ID and free its storage. Find the ID with reel list layers.

Scheduling

Automate layer backups with pod annotations:

annotations:
# reel.io/s3-bucket, reel.io/s3-region, reel.io/s3-secret...
reel.io/schedule: "0 * * * * | upload layer"

See Scheduling Reference for syntax and S3 Evidence Vault for bucket configuration.

See Change Tracking for use case examples.