/install dev-backup
dev-backup
Snapshot the current state of a named project for safe rollback.
Usage
Each project gets its own snapshot numbering. The project name is always the first argument.
# Backup any project
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
bash "$SCRIPT_DIR/dev-backup.sh" \x3Cproject-name> --project-dir /path/to/your/project
# Example: backup a "my-app" project
bash "$SCRIPT_DIR/dev-backup.sh" my-app --project-dir /home/user/projects/my-app
# No --project-dir? Uses the current working directory
cd /home/user/projects/my-app
bash "$SCRIPT_DIR/dev-backup.sh" my-app
Naming
Snapshots are named per project:
- my-app-snapshot-1, my-app-snapshot-2, …
- another-project-snapshot-1, another-project-snapshot-2, …
Each project tracks its own counter independently.
Excluded from snapshot
.git,node_modules,.vite,.cache,*.log,.env,backups/
Restore
To restore a snapshot:
cp -r \x3Cbackups-dir>/\x3Cproject-name>-snapshot-3/ \x3Cyour-project-dir>/
Or use the .latest symlink:
cp -r \x3Cbackups-dir>/.latest/ \x3Cyour-project-dir>/
Verification
After backup, confirm:
ls -la \x3Cbackups-dir>/
You should see the project-prefixed snapshot and .latest symlink.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install dev-backup - After installation, invoke the skill by name or use
/dev-backup - Provide required inputs per the skill's parameter spec and get structured output
What is dev-backup?
Create versioned snapshots of a workspace project during development to enable safe rollback before risky changes or upon user request. It is an AI Agent Skill for Claude Code / OpenClaw, with 128 downloads so far.
How do I install dev-backup?
Run "/install dev-backup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is dev-backup free?
Yes, dev-backup is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does dev-backup support?
dev-backup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created dev-backup?
It is built and maintained by vincsta (@vincsta); the current version is v1.0.1.