Moving notmucch between machines

Dan Čermák dan.cermak at posteo.net
Tue Aug 13 02:11:06 PDT 2019


Hi Bart,

Bart Bunting <bart at ursys.com.au> writes:

> Hi everyone,
>
> Sorry if this question has an obvious answer but I couldn't find it.
>
> I am migrating from OSX to Linux and want to move my mail over.
>
> I am unsure of the best way to approach the problem.
>
> Is it possible to somehow export and re import tags or can I simply move the
> maildir and notmuch indexes over and expect things to work?

You can "abuse" the nmbug script for that: it saves all your tags into a
git repository and allows you to later apply all the tags onto another
notmuch database. However, it requires a little bit of fiddling (as it
is actually intended as a bugtracker: https://notmuchmail.org/nmbug/) to
set up, as it expects the tags to exist in a certain branch.

I'd advise you to make a backup first and make a dry run before nuking
your old system.

>
> I have previously tried and some how offlineimap got itself in a tangle
> and redownloaded all messages.  This is nontrivial as I have about 50g
> of mail and indexes.

You can rsync all your maildirs, but without the ~/.offlineimap folder
it will lack the UUIDs of all your messages and will have to redownload
them. If you copy the ~/.offlineimap folder over too, then it should
work (fingers crossed).


Hope this helps,

Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20190813/b01018bc/attachment.sig>


More information about the notmuch mailing list