A specialized skill for managing the lifecycle of your OpenClaw data. This skill utilizes an external Git-managed backup directory to keep your production environment clean while ensuring full recoverability.
.openclaw runtime to avoid pollution.node_modules, logs, and temporary files are excluded.Before using this skill, you must set your private backup repository URL in openclaw.json. This URL is used by the scripts to push and pull data.
openclaw config set skills.entries.openclaw-backup-restore.env.OPENCLAW_BACKUP_REPO "git@github.com:your-username/your-repo.git"
To trigger a manual backup and sync to your remote repository:
backup.sh script located within this skill's scripts/ directory.${HOME}/.openclaw/ to ${HOME}/openclaw-backup/ using rsync (respecting .gitignore).main branch.Trigger Phrases: "Backup OpenClaw now", "Sync my data to GitHub".
To restore your environment on a new or existing machine:
restore.sh script located within this skill's scripts/ directory.${HOME}/.openclaw/.openclaw doctor --yes to fix environment paths.openclaw gateway restart.Trigger Phrases: "Restore OpenClaw from backup", "Migrate my data".
${HOME}/openclaw-backup${HOME}/.openclaw.gitignore (includes node_modules/, logs/, completions/, tmp/, dist/)..gitignore file is included in this skill and will be copied to ${HOME}/openclaw-backup/ during the first backup run.If restoring to a completely new machine:
OPENCLAW_BACKUP_REPO config value.openclaw onboard if you need to re-install the daemon service.共 3 个版本