Files
aiagent/backend/scripts/sync_db.py
renjianbo a5152b2ea5
Some checks failed
CI/CD Pipeline / Backend — Lint & Test (push) Has been cancelled
CI/CD Pipeline / Frontend — Lint & Build (push) Has been cancelled
CI/CD Pipeline / Docker — Build Check (push) Has been cancelled
feat: add database sync script for local ↔ cloud data sync
Supports push (local→cloud) and pull (cloud→local) with:
- Table grouping (core/user_data/knowledge/logs), logs excluded by default
- --tables/--exclude for fine-grained control
- --mode upsert/replace/append
- --dry-run preview
- FK dependency ordering, auto-disable foreign key checks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-30 00:15:22 +08:00

13 KiB