Is there a way to completely backup mail to an external drive...

Is there a way to backup mail to an external drive, keeping the structure, folder names, account names, email accounts, emails, attachments, rules and signatures (i.e. exactly as it appears in mail) when you do a complete clean install on a macBook Pro?

MacBook Pro 14″, macOS 12.6

Posted on Oct 29, 2022 7:42 AM

Reply
9 replies

Oct 31, 2022 1:08 AM in response to mark_1

Solved: I have managed to recover my entire locally stored emails by doing the following:

Do a re-install from Time Machine backup. Export all email locally stored email folders (I had 46) individually to a new folder. It’s a bit fiddly as, to keep the correct structure, you have to export the top level folder, which creates an Mbox folder which only contains emails directly in that top level folder, then you have to export any sub level folders individually, which will create another Mbox folder of the same name, and then you have to move each created sub level folder into the top level Mbox folder, and delete the empty folder of the same name. You have to do this for each sub level you go down to if you want to maintain the correct folder structure. Then copy the complete new Mbox folder containing your structured emails to whatever new MacBook you have, and import them in Mail.

It took me 4 hours, but if you need important emails, it’s the only way I could work out. Importing your entire old ~Library/Mail folder simply doesn’t work.

Why Apple have not made it easier to export Mbox folders I can’t say.

Oct 29, 2022 4:02 PM in response to mark_1

Yes. Just copy ~/Library/Mail to your external drive. This is a backup, not a relocation. If you are doing a clean install of the same version of macOS you can just copy the Mail folder back to its intended location (~/Library/Mail) after your clean install.


BTW, after your clean install be sure to create the exact same User accounts that you previously had, and create them in the same order as before; and do this before you copy your Mail folder back to the appropriate user Library.


The potential problem is that if you upgrade your Mac to a new version of macOS, the Mail app will probably also be upgraded and may not work with your backed up copy of your previous Mail folder. You would have to cross your fingers, give it a try and hope that it works.

Oct 29, 2022 8:05 AM in response to mark_1

Back up your Mac with Time Machine will backup whatever is locate in the Users Home Folder of this computer.


It will not include a Full Working Copy of the Operating system


To retrieve the e-mails afterwards - that is a bit more complicated and to be honest is not within my Skill Set.


Would perhaps suggest Using Setup Assist on the First Boot Up post Reinstallation and Bring Over Only your User Account and noting more


It should bring back what was in the User Account ( Home Folder ) including e-mails

Oct 30, 2022 7:03 AM in response to MartinR

Thank you for you response Martin. However, I did copy the ~username/library/mail folder, and put it in the same location on the clean installed MacBook, but very few email accounts (I have loads) and no emails were copied over. Now I am in the painful process of re-installing my iMac from the TM backup, and I'll have to export each MBox file individually and then clean it again. Luckily I haven't sold it. I've had to do this before, as it was the only way I could do it then also. I simply forgot this time. As far as I can find out, there is no way Apple have allowed for this type of migration.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is there a way to completely backup mail to an external drive...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.