nebrelbug
nebrelbug2w ago

How can I import only specific tables and their associated storage files from a Convex backup ZIP?

Hi Convex team! I have a backup ZIP from my dev deployment and I’d like to import only specific tables and their associated files (from storage) into my prod deployment. I see that importing individual tables via npx convex import --table ... doesn’t handle storage files, and the docs mention that manual changes to the ZIP for partial imports are possible but undocumented. Could you advise on the best way to import just certain tables and their related storage files, or help me with the process? Thanks! P.S. the reason I'm doing it this way is so that I can make updates to DB content that's shared across all users on dev first, then push those changes to production once I have things perfected. But I don't want to overwrite user data. I tried uploading using the CLI & backup, but it didn't support just uploading the _storage table.
2 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
lee
lee2w ago
This is a case where i would recommend modifying the zip file. You can delete tables by deleting <table>/ and also the corresponding row from _tables/documents.jsonl

Did you find this page helpful?