π¦ ClawHub
Langfuse Backup
by @nissan
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...
π‘ Examples
# 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 userRun a backup
bash scripts/backup_langfuse.shList available backups
ls "$LANGFUSE_BACKUP_DIR"Restore from a date
bash scripts/restore_langfuse.sh 2026-02-27
TERMINAL
clawhub install langfuse-backup