Backup OpenClaw configuration file with automatic change detection.
From workspace directory:
python config_backup.py ..\openclaw.json
Or with custom backup directory:
python config_backup.py ..\openclaw.json -o backup
openclaw_20260319_143052_123456.json-o flagThe script is located in "scripts" directory
usage: config_backup.py [-h] [-o OUTPUT] file
Validate JSON5 and backup with hash check
positional arguments:
file JSON5 file path
options:
-h, --help show this help message and exit
-o OUTPUT, --output Backup directory (default: backup)
✅ JSON5 validate passed
📦 已备份: backup\openclaw_20260319_143052_123456.json
If file unchanged:
✅ JSON5 validate passed
⚠️ config file unchange, skip backup
共 1 个版本