Skip to content
Safe

Create a quick backup of the OpenClaw home directory

Compresses the `~/.openclaw` directory into a `.tar.gz` archive you can copy elsewhere.

tar -czf openclaw-backup.tar.gz ~/.openclaw
Backup and restoreLinuxVPS

What it does

Compresses the `~/.openclaw` directory into a `.tar.gz` archive you can copy elsewhere.

When to use it

Use it before risky config changes, before moving to a new server, or whenever you want a simple snapshot of your current OpenClaw state.

What happens next

The terminal creates `openclaw-backup.tar.gz` in your current directory. Your original `~/.openclaw` data stays in place.

Risk warning

Safe. It does not delete source data, but the backup file may contain sensitive local state, so store it carefully.

Related guides