Skip to content

Instantly share code, notes, and snippets.

View AdilxTech's full-sized avatar

Adil Ali AdilxTech

  • United Kingdom
View GitHub Profile
#!/usr/bin/env python3
"""
backfill-files-to-db.py — backfill pre-existing per-entry files on the
OpenClaw runtime volume into the productivityai dashboard's memory_entries
table. Counterpart to sync-memory-from-db.py (which goes the other direction).
After this runs successfully, every file in /data/workspace/memory/<pillar>/
has a corresponding DB row. The volume can then be considered a derived
artifact — DB is canonical.