Re: Moving notmucch between machines

Subject: Re: Moving notmucch between machines

Date: Tue, 13 Aug 2019 11:11:06 +0200

To: Bart Bunting, notmuch@notmuchmail.org

Cc:

From: Dan Čermák


Hi Bart,

Bart Bunting <bart@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
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: