Julien Riou<p>What's that smell? Oh, look, a MongoDB 3.0 in production! It grew up to 300GB. Not bad, not bad.</p><p>The migration deadline is in two weeks or so. Let's organize a migration to 7.0 💪🏻</p><p>Luckily, the downtime is not very important on that database.</p><p>I tried:<br>- on new version, dump remotely and restore locally: version too old, 3.6 or more required<br>- on old version, dump locally and restore remotely: no valid server found<br>- on new version, connect remotely via ssh to run the dump command, pipe to the local restore command: it works!</p><p>I still need to fix the following problems:<br>- password is prompted even if I read or use a variable<br>- pipes can be used only for a single collection, but the collection variable isn't updated so the first collection is dumped over and over</p><p>At the end of the day, I know it's possible. But folks, my mental health has been altered 😅</p><p><a href="https://hachyderm.io/tags/mongodb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mongodb</span></a> <a href="https://hachyderm.io/tags/debt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>debt</span></a> <a href="https://hachyderm.io/tags/upgrade" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>upgrade</span></a> <a href="https://hachyderm.io/tags/database" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>database</span></a> <a href="https://hachyderm.io/tags/migration" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>migration</span></a></p>