djbalin
djbalin•3d ago

[Backup & restore]: Force overwrite

Would it be possible to add this to the web interface restore? Maybe this could be made an option only for dev environments to avoid doing something nasty. We back up our prod deployment, and sometimes I would like to overwrite my dev deployment with such a backup, but must manually clear all tables first to avoid this error:
Hit an error while importing: _id p1703ysnrnkv5skgsshk2zaa0h76ch4j cannot be imported into 'subscription' because it came from a different deployment and conflict with preexisting tables in this deployment. Try deleting preexisting tables or importing into an empty deployment.
Hit an error while importing: _id p1703ysnrnkv5skgsshk2zaa0h76ch4j cannot be imported into 'subscription' because it came from a different deployment and conflict with preexisting tables in this deployment. Try deleting preexisting tables or importing into an empty deployment.
3 Replies
Convex Bot
Convex Bot•3d 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
lee•3d ago
Yeah the force-overwrite is actually what it's trying to do. This error is a bug that we're looking into. Thanksfor the report
djbalin
djbalinOP•3d ago
Great thanks! LMK if you would like my deployment URL or more info for debugging 😊