Install
openclaw skills install clawsync-skillBackup and sync your entire OpenClaw configuration - skills, memory, settings, and history. One-click backup and restore for complete OpenClaw migration and disaster recovery. Keywords: backup tool, config sync, migration tool, OpenClaw backup, settings export, configuration manager, dotfiles sync, 备份工具, 配置同步, 迁移工具, 导出配置 Use this skill when: - "Backup my OpenClaw setup" - "OpenClaw backup tool" - "I'm moving to a new computer" - "Move to new computer" - "Sync settings between devices" - "Export my skills and configuration" - "Export OpenClaw config" - "Restore from backup" - "What did I configure last month?" - "Archive my OpenClaw data" - "备份OpenClaw配置" - "迁移到新电脑" - "同步设置" One-click backup and restore for complete OpenClaw migration and disaster recovery. Supports encryption, multiple storage backends, and selective restore.
openclaw skills install clawsync-skillNever lose your OpenClaw setup again. One command to backup everything, one command to restore anywhere.
✅ Use this skill when:
❌ Don't use when:
.openclaw config files# Full backup with encryption
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --encrypt
# Quick backup (skills + settings only)
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --quick
# Backup to specific location
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --output ~/Backups/openclaw_backup.zip
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py list
# Interactive restore
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore
# Restore specific backup
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore --backup ~/Backups/openclaw_20260322_120000.zip
# Restore to new machine
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore --backup backup.zip --fresh-install
Create a complete backup of OpenClaw configuration.
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup [options]
Options:
--output PATH Output file/directory (default: timestamped in ~/clawsync-backups)
--encrypt Encrypt backup with password
--gpg Use GPG encryption
--include-history Include full conversation history
--include-workspace Include workspace files (may be large)
--exclude-skills Don't backup skills (use clawhub to reinstall)
--quick Quick backup (settings + skills only)
--compress LEVEL Compression level 1-9 (default: 6)
Restore OpenClaw configuration from backup.
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore [options]
Options:
--backup PATH Backup file to restore from
--selective Choose what to restore
--overwrite Overwrite existing files
--merge Merge with existing configuration
--fresh-install Setup on new machine
--dry-run Preview changes
List available backups.
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py list [options]
Options:
--location PATH Backup directory to scan
--details Show detailed info
Export specific components.
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py export COMPONENT [options]
Components:
skills Export only skills
memory Export only memory
settings Export only settings
credentials Export credentials (encrypted)
openclaw_backup_20260322_120000/
├── manifest.json # Backup metadata
├── README.txt # Restoration instructions
├── skills/ # All installed skills
│ ├── skill1/
│ ├── skill2/
│ └── ...
├── memory/ # Agent memory
│ ├── conversations/
│ ├── memory/
│ └── ...
├── settings/ # Configuration files
│ ├── config.yaml
│ ├── settings.json
│ └── ...
├── credentials/ # Encrypted credentials
│ └── credentials.enc
└── workspace/ # Workspace files (optional)
| Component | Default | Quick | Full |
|---|---|---|---|
| Skills | ✓ | ✓ | ✓ |
| Settings | ✓ | ✓ | ✓ |
| Memory | ✓ | ✗ | ✓ |
| Credentials | ✓ | ✓ | ✓ |
| History | ✗ | ✗ | ✓ |
| Workspace | ✗ | ✗ | ✓ |
# Before moving to new laptop
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup \
--encrypt \
--include-workspace \
--output ~/migration_backup.zip
Output: Encrypted ZIP with everything needed to recreate setup.
# Add to cron/job scheduler
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --quick
Keeps last 7 days of quick backups automatically.
# Export only skills (no credentials)
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py export skills \
--output team_skills.zip
# Team members import
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore \
--backup team_skills.zip \
--selective skills
# New machine, restore everything
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore \
--backup openclaw_backup_20260322_120000.zip \
--fresh-install
# Verify installation
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py verify
~/clawsync-backups/%USERPROFILE%\clawsync-backups\# Backup to private Gist
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --github-gist
# Restore from Gist
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py restore --github-gist GIST_ID
# Backup to S3
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --s3-bucket my-backups
# Version-controlled backups
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --git-repo ~/dotfiles
# Will prompt for password
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --encrypt
# Or use environment variable
export CLAWSYNC_PASSWORD="secure_password"
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --encrypt
# Encrypt with specific GPG key
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --gpg --gpg-key user@example.com
# Daily backup at 2 AM
0 2 * * * /usr/bin/python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --quick
# Weekly full backup
0 3 * * 0 /usr/bin/python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup
# Create scheduled task
schtasks /create /tn "ClawSync Backup" /tr "pythonw.exe %USERPROFILE%\.openclaw\workspace\clawsync\scripts\clawsync.py backup --quick" /sc daily /st 02:00
Create ~/.clawsync/config.json:
{
"backup_location": "~/Backups/OpenClaw",
"retention": {
"daily": 7,
"weekly": 4,
"monthly": 12
},
"encryption": {
"enabled": true,
"method": "password"
},
"exclude": [
"*.log",
"cache/",
"tmp/"
],
"auto_backup": {
"enabled": true,
"schedule": "0 2 * * *"
}
}
# Install dependencies
pip install -r ~/.openclaw/workspace/clawsync/requirements.txt
# Verify installation
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py --version
Exclude workspace or use incremental backups:
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py backup --exclude workspace
Ensure read access to ~/.openclaw and write access to backup location.
Verify integrity:
python3 ~/.openclaw/workspace/clawsync/scripts/clawsync.py verify --backup backup.zip
MIT License - See LICENSE file
For issues and feature requests, visit the GitHub repository.