Module 3: Deployment & Operations

Deploy NanoClaw with backup and restore drills.

Commands are templates. Replace IDs, secrets and endpoints with your environment values.

Hands-on Steps (Directly Runnable)

Execute each command, capture output, then note issues and fixes.

Step 1: Build and deploy

Run:
docker build -t nanoclaw:prod .\ndocker compose -f deploy/prod.yml up -d

Copyable commands
docker build -t nanoclaw:prod .
docker compose -f deploy/prod.yml up -d

Step 2: Health checks

Run:
curl -f http://localhost:8080/health\nnanoclaw status

Copyable commands
curl -f http://localhost:8080/health
nanoclaw status

Step 3: Backup

Run:
nanoclaw backup create --output ./backup-$(date +%F).tar.gz

Copyable commands
nanoclaw backup create --output ./backup-$(date +%F).tar.gz

Step 4: Restore drill

Run:
nanoclaw backup restore --input ./backup-YYYY-MM-DD.tar.gz --dry-run

Copyable commands
nanoclaw backup restore --input ./backup-YYYY-MM-DD.tar.gz --dry-run

Track completed

Turn the commands on this page into your team runbook.

NanoClaw Module 3: Deployment & Operations | BestClaw