Migrating Minio Images Across Servers With Postgresql and Elasticsearch
Disclaimer: This post was written with the help of Claude Sonnet 4 You know that feeling when you’ve automated everything perfectly, and then reality hits you with a curveball? That’s exactly what happened during our recent migration from media.tifi.tv to media.telex.im. What started as a straightforward file migration turned into an unexpected deep dive into Elasticsearch operations. Here’s how it all unfolded. The Perfect Plan (That Wasn’t So Perfect) The mission seemed straightforward: migrate all media files from our old domain to the new one. We had thousands of files scattered across our PostgreSQL database—user avatars, uploaded documents, logos—all pointing to https://media.tifi.tv/telexbucket/. The new infrastructure was ready at https://media.telex.im/ with separate buckets for staging and production environments. ...