Langfuse Backup
/install langfuse-backup
Last used: 2026-03-24 Memory references: 2 Status: Active
langfuse-backup
Backup and restore Docker volumes for a self-hosted Langfuse instance.
Scripts
scripts/backup_langfuse.sh— back up postgres + minio volumes (primary data)scripts/restore_langfuse.sh— restore from a specific backup date
Quick start
# Configure (env vars or edit the script defaults)
export LANGFUSE_BACKUP_DIR="$HOME/.langfuse-backups"
export LANGFUSE_COMPOSE_DIR="/path/to/langfuse" # directory with docker-compose.yml
export LANGFUSE_DB_CONTAINER="langfuse-db-1" # postgres container name
export LANGFUSE_MINIO_CONTAINER="langfuse-minio-1" # minio container name
export LANGFUSE_DB_NAME="langfuse" # postgres database name
export LANGFUSE_DB_USER="langfuse" # postgres user
# Run a backup
bash scripts/backup_langfuse.sh
# List available backups
ls "$LANGFUSE_BACKUP_DIR"
# Restore from a date
bash scripts/restore_langfuse.sh 2026-02-27
Env vars
| Var | Default | Description |
|---|---|---|
LANGFUSE_BACKUP_DIR |
~/.langfuse-backups |
Root backup directory |
LANGFUSE_COMPOSE_DIR |
~/langfuse |
Docker Compose project directory |
LANGFUSE_DB_CONTAINER |
langfuse-db-1 |
Postgres container name |
LANGFUSE_MINIO_CONTAINER |
langfuse-minio-1 |
MinIO container name |
LANGFUSE_DB_NAME |
langfuse |
Postgres database name |
LANGFUSE_DB_USER |
langfuse |
Postgres user |
LANGFUSE_RETENTION_DAYS |
14 |
How many days of backups to keep |
What gets backed up
| Volume | Backed up? | Notes |
|---|---|---|
| Postgres | ✅ Yes | pg_dump → .sql.gz — traces, scores, evals |
| MinIO | ✅ Yes | tar.gz — uploaded blobs |
| ClickHouse | ⚠️ Optional | Large; many users skip (replayed from traces) |
| Redis | ⚠️ Skip | Cache only — safe to skip |
Cron setup (macOS LaunchAgent)
\x3C!-- ~/Library/LaunchAgents/com.yourname.langfuse-backup.plist -->
\x3Ckey>StartCalendarInterval\x3C/key>
\x3Cdict>
\x3Ckey>Hour\x3C/key>\x3Cinteger>2\x3C/integer>
\x3Ckey>Minute\x3C/key>\x3Cinteger>0\x3C/integer>
\x3C/dict>
\x3Ckey>ProgramArguments\x3C/key>
\x3Carray>
\x3Cstring>/bin/bash\x3C/string>
\x3Cstring>/path/to/scripts/backup_langfuse.sh\x3C/string>
\x3C/array>
\x3Ckey>StandardOutPath\x3C/key>
\x3Cstring>/tmp/langfuse-backup.log\x3C/string>
Restore procedure
# 1. Stop Langfuse
cd $LANGFUSE_COMPOSE_DIR && docker compose down
# 2. Restore from backup
bash scripts/restore_langfuse.sh 2026-02-27
# 3. Start Langfuse
cd $LANGFUSE_COMPOSE_DIR && docker compose up -d
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install langfuse-backup - After installation, invoke the skill by name or use
/langfuse-backup - Provide required inputs per the skill's parameter spec and get structured output
What is Langfuse Backup?
Docker volume backup and restore for self-hosted Langfuse. Use when: backing up a self-hosted Langfuse instance, restoring Langfuse after a crash or migratio... It is an AI Agent Skill for Claude Code / OpenClaw, with 428 downloads so far.
How do I install Langfuse Backup?
Run "/install langfuse-backup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Langfuse Backup free?
Yes, Langfuse Backup is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Langfuse Backup support?
Langfuse Backup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Langfuse Backup?
It is built and maintained by Nissan Dookeran (@nissan); the current version is v1.0.2.