Skip to content

feat: add comprehensive backup script - #480

Closed
pasogott wants to merge 3 commits into
openclaw:mainfrom
pasogott:feature/backup-script
Closed

pasogott wants to merge 3 commits into
openclaw:mainfrom
pasogott:feature/backup-script

Conversation

@pasogott

@pasogott pasogott commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a complete backup solution for Clawdbot that backs up all state, workspaces, and sandboxes.

Features

✅ Complete backup coverage:

  • Full .clawdbot state directory (agents, sessions, sandboxes, credentials, logs)
  • Auto-discovery of agent workspaces from config
  • Docker volume exports (when available)

✅ Smart automation:

  • Parses routing.agents.*.workspace to find all configured workspaces
  • Backs up workspaces with original directory names
  • Timestamped backups (~/.backup/clawdbot/<YYYYMMDDHHMMSS>/)

✅ User-friendly output:

  • Progress indicators
  • Summary with sizes and file counts
  • Ready-to-use restore commands

Usage

./scripts/backup-complete.sh

Documentation

See scripts/BACKUP.md for full documentation including:

  • What gets backed up
  • Example output
  • Restore instructions
  • Use cases

Testing

Tested on macOS with:

  • 3 agents with separate workspaces
  • 6 sandbox workspaces
  • 125M total backup size

Changes

  • scripts/backup-complete.sh - Main backup script
  • scripts/BACKUP.md - Documentation

@steipete

steipete commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Thanks! Can this be a skill?

@steipete steipete added the r: skill Auto-close: skills should be published on ClawHub, not added to core. label Jan 9, 2026
@steipete

Copy link
Copy Markdown
Contributor

Thanks! We recommend backing up the workspace via a private git repo, and keeping ~/.clawdbot (config/credentials/sessions) out of version control. Docs: https://docs.clawd.bot/concepts/agent-workspace and https://docs.clawd.bot/gateway/doctor

@steipete steipete closed this Jan 16, 2026
heatherstew44-maker pushed a commit to heatherstew44-maker/openclaw that referenced this pull request Mar 8, 2026
* fix: replace async-openai library with post request to support custom providers

* move models call to llm_client too

* tweak post processing ui and add groq and cerebras

---------

Co-authored-by: CJ Pais <[email protected]>
cryptolir pushed a commit to cryptolir/openclaw that referenced this pull request Sep 2, 2026
…— DevAgents as a platform-only deploy target

Co-Authored-By: Claude Fable 5.1 <[email protected]>
cryptolir pushed a commit to cryptolir/openclaw that referenced this pull request Sep 2, 2026
….2.3 — DevAgents is a platform-only deploy target

Co-Authored-By: Claude Fable 5.1 <[email protected]>
cryptolir pushed a commit to cryptolir/openclaw that referenced this pull request Sep 27, 2026
DevAgents (204.168.223.245) is a platform-only deploy target since
dashboard openclaw#480, so it needs the daily host, container, containment and
Global Host checks like eu and us. Adds dev to host_ip, host_label,
ALL_HOSTS and the arg parser; the probe reaches it over ssh with the same
key, so one code path serves all three hosts.

First --no-write run: all three reachable; dev reports P0 disk 100% and
P2 no docker log rotation, both real.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
cryptolir added a commit to cryptolir/openclaw that referenced this pull request Sep 27, 2026
* fix(diagnostic): probe DevAgents (dev) as a third host

DevAgents (204.168.223.245) is a platform-only deploy target since
dashboard openclaw#480, so it needs the daily host, container, containment and
Global Host checks like eu and us. Adds dev to host_ip, host_label,
ALL_HOSTS and the arg parser; the probe reaches it over ssh with the same
key, so one code path serves all three hosts.

First --no-write run: all three reachable; dev reports P0 disk 100% and
P2 no docker log rotation, both real.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* status: claim fix/diagnostic-dev-host (#142)

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Liran Peretz <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r: skill Auto-close: skills should be published on ClawHub, not added to core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants