This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |