backup
Save user directives to a backup location.
Usage
era-code backup [options]
Options
| Option | Description |
|---|---|
-q, --quiet | No output (for scripting) |
Examples
Create a backup
era-code backup
Quiet mode for scripts
era-code backup --quiet
What It Backs Up
All user-editable directive files in .era/memory/directives/:
- Category files (e.g.,
development.md,testing.md)
Excludes (managed by Era):
000-*header files999-*footer files_config.yaml
Backup Location
~/.era/backups/{project-name}/{timestamp}/
├── _backup-metadata.json
├── development.md
├── testing.md
└── ...
Metadata
Each backup includes metadata:
{
"projectPath": "/path/to/project",
"projectName": "my-project",
"createdAt": "2025-01-09T12:00:00.000Z",
"eraVersion": "3.0.0",
"gitBranch": "main",
"gitCommit": "abc1234",
"files": ["development.md", "testing.md"]
}
See Also
- restore - Restore from a backup