Install
openclaw skills install @bustes01/vps-bootstrapBootstrap a fresh VPS from zero to a fully operational OpenClaw deployment, with backup/restore and post-recovery verification. Use when setting up OpenClaw on a new VPS, recovering from a failed server, migrating between machines, or automating disaster recovery. Covers system dependencies, Node.js, Chrome, OpenClaw install, security hardening, backup to Google Drive, restore from backup, and full verification suite.
openclaw skills install @bustes01/vps-bootstrapFull deployment and disaster recovery framework for OpenClaw on Ubuntu VPS.
Three scripts handle the complete lifecycle:
bootstrap.sh — Fresh VPS → fully operational OpenClaw (15-20 min)restore.sh — Restore workspace, config, secrets, and crons from backupverify.sh — Post-deployment verification (all-green = ready)# On fresh Ubuntu 24.04 VPS
bash scripts/bootstrap.sh
bash scripts/restore.sh ~/openclaw-backup-*.tar.gz
bash scripts/verify.sh
Sequential installation with error handling at each step:
Each step is idempotent — safe to re-run if interrupted.
Extracts a backup tarball and restores:
Runs 10+ checks and reports pass/fail:
For automated daily backups, see references/backup-guide.md.
Edit scripts/bootstrap.sh variables at the top:
OPENCLAW_PORT=18789 # Gateway port
ENABLE_FIREWALL=true # UFW setup
ENABLE_FAIL2BAN=true # SSH protection
INSTALL_CHROME=true # Browser tools support
| 权限 | 范围 | 用途 | 说明 |
|---|---|---|---|
| 执行 | sudo (root) | apt 包管理、系统配置 | 安装 Node.js/Chrome/Docker 等依赖 |
| 文件系统 | 写入 | 系统配置目录 (/etc/, /usr/local/bin/) | 修改 SSH、UFW、Fail2Ban 配置 |
| 文件系统 | 写入 | Workspace 目录 | 从备份恢复 AGENTS.md/MEMORY.md 等文件 |
| 网络 | 出站 | 包管理器源、Google Drive API | 下载软件包、备份恢复 |
| 进程 | 启动/停止 | systemd 服务 | 安装后启动 OpenClaw gateway |
| 凭证 | 读取/写入 | pass (GPG 加密) | 恢复/保存 API 密钥和凭证 |
⚠️ 前置条件:此脚本设计为 全新 VPS 首次引导 使用。在生产服务器上运行前,请逐行审核要执行的命令。