一键导入
backup-restore
Create backups before changes and restore if things go wrong. Triggers: "backup", "restore", "undo", "go back", "roll back", "save point".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create backups before changes and restore if things go wrong. Triggers: "backup", "restore", "undo", "go back", "roll back", "save point".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Explain any command, concept, or log entry in plain English with a risk rating. Triggers: "what does this do", "explain", "what is", "what happened here", "what does this mean".
Full system health report in plain English with traffic-light ratings. Triggers: "is it working", "health check", "full status", "how's the system".
Guided secret rotation with validation. Never revoke old key before new one is verified. Triggers: "rotate key", "change API key", "new token", "credential expired", "401 error".
Guided deployment with pre-flight, explain, confirm, execute, verify. Triggers: "deploy", "push changes", "update the agent", "update workspace files". NEVER skip phases. NEVER auto-execute.
Full credential security audit across local repo and VPS. Triggers: "audit secrets", "check credentials", "are my keys safe", "security check".
Step-by-step troubleshooting when something is broken. Triggers: "it's broken", "not working", "error", "help", "something wrong", "agent down".
| name | backup-restore |
| description | Create backups before changes and restore if things go wrong. Triggers: "backup", "restore", "undo", "go back", "roll back", "save point". |
MANDATORY: Always create a backup before any state-changing operation on the VPS.
Backs up all workspace files, the config, and the credentials file. Think of it as a save point.
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 \
"tar -czf ~/.openclaw/backups/manual-$(date +%Y%m%d-%H%M%S).tar.gz \
~/.openclaw/workspace/ ~/.openclaw/openclaw.json ~/.openclaw/.env"
Tell Trent: "This creates a snapshot of everything. If something goes wrong, we can restore to exactly this state."
If only one agent's files are changing:
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 \
"tar -czf ~/.openclaw/backups/<agent>-$(date +%Y%m%d-%H%M%S).tar.gz \
~/.openclaw/workspace/"
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 \
"ls -lh ~/.openclaw/backups/ 2>/dev/null | sort -k6,7 || echo 'No backups directory found'"
Show Trent the list with dates and sizes. Explain: "Each of these is a save point you can restore from."
Show available backups and ask Trent which one to restore to.
Tell Trent: "The agent will be offline for about 1-2 minutes during the restore."
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 "systemctl stop openclaw-gateway"
Wait for confirmation before proceeding.
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 \
"cd / && tar -xzf ~/.openclaw/backups/[BACKUP_FILE].tar.gz"
After restore, always fix permissions (the tar might not preserve them correctly):
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 \
"chmod 600 ~/.openclaw/.env && chmod 444 ~/.openclaw/openclaw.json"
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 "systemctl start openclaw-gateway"
Wait 15 seconds, then dispatch the deploy-verifier agent to confirm everything is healthy.
"Restore complete. The system is back to the state from [backup date/time]. Everything looks healthy."
Or if verification failed: "The restore finished but there's an issue. [explain]. Would you like to try a different backup or should we troubleshoot?"
Periodically check that backups exist and aren't too old:
ssh -i ~/.ssh/id_ed25519_github root@72.62.213.231 \
"ls -lt ~/.openclaw/backups/ 2>/dev/null | head -5"
If the most recent backup is more than 7 days old, suggest creating a fresh one.
mkdir -p ~/.openclaw/backups/