Skip to main content
Run substrate backup to take a timestamped snapshot of your substrate before any operation you are unsure about. The archive lands in .substrate/backups/ and the path is printed so you know exactly what was created. Take one before a substrate import --force, a hand-edit of several board files, or a template apply into a substrate you care about.

Usage

Output

The command writes a timestamped .tar.gz of the substrate into .substrate/backups/ and prints the full path to the archive.
There is no retention or pruning in v0.7.0 — backups accumulate until you remove them manually.

Writing to a Custom Path

To write the archive somewhere other than .substrate/backups/, use substrate export with an explicit output path.