GuidesRunning & maintaining

Backing up an OpenClaw agent (and actually restoring it)

One directory holds everything your agent is. How to back it up, what a real restore test looks like, and why backups carry secrets.

July 17, 2026The Everpod team
The short answer

Everything your agent is lives in one place, ~/.openclaw (plus auth secrets under ~/.config/openclaw in some setups), so a backup is an archive of a directory, and a restore is putting it back on a machine with the same OpenClaw version. The two rules that make it real: test one restore before you trust the scheme, and treat every backup as the sensitive object it is. It contains your agent’s memory and credentials.

What to back up

The state directory holds config, sessions, workspace, memory, installed skills, and channel credentials. Archive it and you’ve archived the agent:

tar -czf openclaw-backup-$(date +%F).tar.gz \
  ~/.openclaw ~/.config/openclaw 2>/dev/null

Quiesce first when you can (openclaw gateway stop, archive, start again): archiving a live directory usually works, but a stopped one can’t be mid-write. On a VPS, provider machine backups (typically ~20% of the instance price) or snapshots do this at the disk level and are worth having as well. They protect against the machine dying, while the tarball protects against everything else: fat-fingered deletion, a bad update, migrating homes.

The restore (and the test that makes it true)

Restoring is the mirror: same OpenClaw version installed, unpack the archive to the same paths, start the Gateway. The agent comes back as itself: identity, memory, config, channels; we’ve watched restored agents resume Telegram conversations as if nothing happened. Which is exactly why the untested backup is the industry’s oldest sad story: a backup you’ve never restored is a hope. The test costs twenty minutes, once: spin up any scratch machine (or container), restore into it, start the Gateway, confirm the agent knows who it is. Now you have a scheme, not a wish.

Backups are secrets with a timestamp

The archive contains your agent’s memory of your life, its model key, and its channel credentials. Three consequences worth writing down: store backups somewhere with the same care as the machine itself (not a world-readable bucket); rotate or encrypt them if they leave your control; and when you delete an agent for good, the backups are part of the deletion. An agent isn’t gone while a copy of its mind sits in an old snapshot. (On an Everpod pod: backups every day, restores tested, and cancelling deletes the machine, its memory, and its backups together.)

Your own cloud agent, set up for you.

Everpod runs OpenClaw on a private, always-on computer of its own: set up, secured and backed up, with model usage included. You name your agent, and say hello about fifteen minutes later.

Create your agent

First month half price, then $29/mo · model usage included · cancel anytime

Wondering what you’d do with one? See what a cloud agent can do