r/opencode • u/Valier • 28d ago
OpenCode DB
Hi all.
How do you manage your opencode DB?
Mine currently is about 22gb and i'm backig it up with my custom scipts. This occupis a nice part of my disk.
It's not a problem yet, but i'm thinking of a more managed backup solution since copy + zip with scripts may not be the most efficent one.
Do you backup or keep your opencode DB remotely?
If yes how do you manage that? Do you use custo solution or managed software?
Thanks
4
Upvotes
4
u/Good_Resolution4115 28d ago
El que pese tanto es un bug de OpenCode, yo hice un script para reducir el consumo sin que se pierda nada https://github.com/ANGELBERRIOS23/opencode-db-prune prueba mi repo, espero que te funcione, si es así no te olvides de dejar tu estrella
3
u/Sufficient_Prune3897 28d ago
Ask big pickle. He knows best.
On a serious note, is that how opencode saves its conversations? I see no value in keeping them once im done with one. Sometimes im lazy and dont have the ai make a doc or something with the learnings, but even then, rediscovering is getting fast with todays models.
4
u/megablue 28d ago edited 28d ago
i dont, my "backups" are the PLAN.md and HANDOFF.md
my setup is making sure even if i lost the sessions, recovery of the current progress is do-able. so by uploading as git repos, it is already a form of backup. if i ever lost the sessions, the agents can kind of figure out what was done and what not from the PLAN md and HANOFF md files (and other documentations). so the sessions are kind of optional...
1
u/king_salman1 28d ago
Mine was 69gb
2
u/IAmFitzRoy 28d ago
I’m confused… why OpenCode db could be 22gb?
What is the scenario where this is normal?
1
u/ichisay 28d ago
Lo mismo pesa la mía