返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
l

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 migration, setting up daily cron backups for Langfuse postgres/clickhouse/minio/redis volumes. Backs up postgres (traces, scores), minio (blobs), with optional clickhouse and redis. Includes restore script with validation and 14-day retention pruning.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
363
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

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 ```bash # 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) ```xml <!-- ~/Library/LaunchAgents/com.yourname.langfuse-backup.plist --> <key>StartCalendarInterval</key> <dict> <key>Hour</key><integer>2</integer> <key>Minute</key><integer>0</integer> </dict> <key>ProgramArguments</key> <array> <string>/bin/bash</string> <string>/path/to/scripts/backup_langfuse.sh</string> </array> <key>StandardOutPath</key> <string>/tmp/langfuse-backup.log</string> ``` ## Restore procedure ```bash # 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 ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 langfuse-backup-1776284735 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 langfuse-backup-1776284735 技能

通过命令行安装

skillhub install langfuse-backup-1776284735

下载

⬇ 下载 langfuse-backup v1.0.2(免费)

文件大小: 5.66 KB | 发布时间: 2026-4-16 16:18

v1.0.2 最新 2026-4-16 16:18
Added metadata.openclaw block and version field — scanner compliance

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部