You are reading this article as you wish to backup your online email to your local computer.
If you are using email for work and are using IMAP, IMAP servers automatically archive and distribute your email on the server so that you can access it anytime or anywhere.
If you want to back up the message folders locally (in addition to keeping them on the server), you can automatically move or delete older items with the AutoArchive function Outlook or export the items to a .pst file that you can restore later using the import function in your email software.
Select File > Open & Export > Import/Export.
Select Export to a file, and then select Next.
Select Outlook Data File (.pst), and select Next.
Select the mail folder you want to back up and select Next.
Choose a location and name for your backup file, and then select Finish.
STEP 6 (optional)
If you want to ensure no one has access to your files, enter and confirm a password, and then select OK.
The messages that you keep in a .pst file are no different from other messages. You can forward, reply, or search through the stored messages as you do with other messages.