# Help with upgrade with a special case

**URL:** <https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803>\
**Category:** Help with Setup/Upgrade\
**Created:** [March 26, 2025, 5:57pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803 "2025-03-26T17:57:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jogo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jogo](https://discourse.mailinabox.email/u/Jogo)\
**Post date:** [March 26, 2025, 5:57pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/1 "2025-03-26T17:57:04Z")

</div>

Hi everyone,  
This is going to be my first post on this forum and I apologize beforehand because I feel it is going to be a long one.

I’ve just been made responsible for a company’s email server and dns running MIAB v57a running on a Ubuntu 18.04.6 LTS virtual machine hosted on Linode.  
I want to upgrade it to the latest version: v71a. I’ve read through the documentation on how to perform the upgrade, but here is where it gets tricky.  
This server has 102 domains an a whole lot of email users and aliases. It works great, with little or no problems at all. The big issue here is our storage and the integrated backups MIAB has. We have over 7TB of data in emails. My instructions have been to preserve as much history as it is possible, and we have no issue with having to pay for all that storage. This storage is an attached volume to the VM and we resize it whenever it ist needed with no issues.

The problem is that the guide for upgrade states that we have to perform a backup with MIAB’s built in tool. The issue here is that performing the backup this way will take for ever and it is going to take a lot downtime, which we can´t afford to have.

My question is this: is it possible to just unmount the volume where we have the user-data directory, perfrom the backup with MIAB’s built-in tool and then follow all the remaining steps on the upgrade guide, and then mount the volume on the new box for MIAB with the new version and OS?

Thank you beforehand and I hope someone can help me.  
Cheers.

---

<div class="post-metadata">

**Author:** ![KiekerJan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kiekerjan/32/2339_2.png) [@KiekerJan](https://discourse.mailinabox.email/u/KiekerJan)\
**Post date:** [March 26, 2025, 6:23pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/2 "2025-03-26T18:23:24Z")

</div>

I’m almost afraid to answer with that much mail on the line 🤠  
My take is that indeed you can unmount the volume, and mount it on the new VM. Then the installation needs to be performed with the mounted volume again (it will update configs and databases where necessary)  
You are going to do a dry run before doing this for real, right? RIGHT?

---

<div class="post-metadata">

**Author:** ![Jogo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jogo](https://discourse.mailinabox.email/u/Jogo)\
**Post date:** [March 26, 2025, 9:36pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/3 "2025-03-26T21:36:19Z")

</div>

Hey KiekerJan,

Thanks for your reply. Yes. This is what I was planning on doing:  
For the test run, I’ve already deployed a new VM with the same specs, only difference is the OS (Ubuntu 22.04)

1. Sync the whole storage volume to a backup one on the same cloud.
2. Perform the backup (without the email data)
3. Restore the backup on the new VM
4. Mount the backup volume
5. Test if it works. (No idea how to do this, since I really dont want to move the public IP of the production box to the new box until I’m absolutely sure that it works).

Does this make sense? My gut tells me that this should go without any problems, unless MIAB’s backup process somehow needs to see the whole directory tree inside user-data.

What do you guys think?

---

<div class="post-metadata">

**Author:** ![alento](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/alento/32/1371_2.png) [@alento](https://discourse.mailinabox.email/u/alento)\
**Post date:** [March 27, 2025, 12:55am UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/4 "2025-03-27T00:55:46Z")

</div>

Are you using NextCloud at all?

This is going to be the pain spot if you do. Maybe.

> [@Jogo](#):
>
> Perform the backup (without the email data)

How do you propose to do this?

---

<div class="post-metadata">

**Author:** ![Jogo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jogo](https://discourse.mailinabox.email/u/Jogo)\
**Post date:** [March 27, 2025, 4:14pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/5 "2025-03-27T16:14:02Z")

</div>

Hey Alento,

No. We are not using NextCloud, so one less thing to worry about.  
I’ve noticed that when I unmount the volume that has the user-data directory, I have the user-data directory still there with the default values. I was thinking on copying all files and directories to this original user-data directory, excepting all email files, that way, the backup operation shouldn’t take as long.

Do you think this could work?

Thanks guys!

---

<div class="post-metadata">

**Author:** ![vele](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/v/e5b9ba/32.png) [@vele](https://discourse.mailinabox.email/u/vele)\
**Post date:** [March 28, 2025, 1:04am UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/6 "2025-03-28T01:04:48Z")

</div>

Yes @Jogo that is correct. Just rsync the user-data. That should not take too much time.

As per JoshData instructions in this post:

> [@Quick server move to another machine (rsync user-data)](https://discourse.mailinabox.email/t/quick-server-move-to-another-machine-rsync-user-data/10118/4):
>
> Same story, different cloud. I spent years building my reputation as a trusted sender IP, until the entire swath of EC2 addresses was flagged by blacklists. It’s extra work to send outbound through SES, but they have excellent controls. You may find that RSYNC is slow like crazy, and your time would be better spent halting services, making one last backup, and FTP’ing (or secure) the bundle across to your new machine. I found that RSYNC can be slower than all of that. Good luck with it all…

---

<div class="post-metadata">

**Author:** ![Jogo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jogo](https://discourse.mailinabox.email/u/Jogo)\
**Post date:** [April 2, 2025, 12:22am UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/7 "2025-04-02T00:22:24Z")

</div>

Hey Vele,  
Thanks for your reply. The post you pointed me to was very helpfull and I’m going to give it a try.  
Hopefully it works.  
I’ll let you guys know.

---

<div class="post-metadata">

**Author:** ![Jogo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jogo](https://discourse.mailinabox.email/u/Jogo)\
**Post date:** [April 2, 2025, 7:19pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/8 "2025-04-02T19:19:20Z")

</div>

Hey guys,

Maybe this is going to be a dumb question but should I go straight to the latest version on the new VM or should I follow a specific upgrade path?

---

<div class="post-metadata">

**Author:** ![vele](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/v/e5b9ba/32.png) [@vele](https://discourse.mailinabox.email/u/vele)\
**Post date:** [April 2, 2025, 9:16pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/9 "2025-04-02T21:16:09Z")

</div>

Just

`curl -s https://mailinabox.email/setup.sh | sudo -E bash`

This will install the latest version.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [April 9, 2025, 9:16pm UTC](https://discourse.mailinabox.email/t/help-with-upgrade-with-a-special-case/12803/10 "2025-04-09T21:16:28Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
