Backup Strategy
When to Create Backups
- Before major changes — Backup before updating SOUL.md or changing configurations
- Project milestones — Create snapshots at key project stages
- Weekly routine — Schedule regular backups for active projects
- Before system updates — Backup before OS or OpenClaw updates
Naming Conventions
Use descriptive, consistent names for easy identification:
# Good examples: macbook-pro-python-ml-2026-03-15 work-laptop-nodejs-project-stable personal-writing-config-backup # Avoid: backup1 test my-backupSecurity Best Practices
1. Protect Your API Keys
- Never commit API keys to version control
- Use environment variables instead of hardcoding
- Rotate keys periodically (every 90 days recommended)
- Delete unused keys immediately
2. Clean Sensitive Data
Before backing up, review your configuration for:
- API keys and tokens in SOUL.md
- Database credentials
- SSH keys or certificates
- Personal information
Replace hardcoded secrets with environment variable references.
3. Use Multiple API Keys
Create separate API keys for different machines or purposes:
- One key per physical machine
- Separate keys for production vs. development
- Different keys for team members
This makes it easy to revoke access if a machine is compromised.
Version Management
Tagging Strategy
Use tags to organize backups by:
- Environment: dev, staging, production
- Language/Stack: python, javascript, golang
- Project: project-name or client-name
- Purpose: stable, experimental, archived
Retention Policy
- Keep at least 3 recent backups
- Archive milestone backups separately
- Delete experimental backups after testing
- Review and clean old backups quarterly
Testing & Validation
Regular Restore Tests
Periodically test your backups to ensure they work:
- Set up a clean test environment
- Restore from backup
- Verify all files are present
- Test OpenClaw functionality
Pre-Restore Checklist
Before restoring to a production machine:
- ✓ Backup current configuration first
- ✓ Verify backup integrity and date
- ✓ Check OpenClaw version compatibility
- ✓ Review what will be overwritten
- ✓ Have a rollback plan ready
Performance Tips
Optimize Backup Size
- Exclude large binary files
- Clean temporary files before backing up
- Use .clawcloneignore for project-specific exclusions
- Compress large text files
Faster Restores
- Use --preview flag to check before applying
- Keep API keys in environment variables for automation
- Consider incremental backups for large configurations
Disaster Recovery
Emergency Restoration
If you lose access to your machine:
- Sign in to ClawClone from any browser
- View your backups in the dashboard
- Download the restore instructions
- Follow the CLI steps on your new machine
Backup Your Backups
For critical configurations:
- Keep a local copy of your latest backup
- Export backup IDs and names to a spreadsheet
- Document your API keys in a password manager
- Share recovery procedures with your team