unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Moving notmucch between machines
@ 2019-08-13  6:16 Bart Bunting
  2019-08-13  9:11 ` Dan Čermák
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Bunting @ 2019-08-13  6:16 UTC (permalink / raw)
  To: notmuch@notmuchmail.org

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?

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.

Any suggestions would be appreciated.


Kind regards
Bart
-- 

Bart Bunting - URSYS

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Moving notmucch between machines
  2019-08-13  6:16 Moving notmucch between machines Bart Bunting
@ 2019-08-13  9:11 ` Dan Čermák
  2019-08-13 10:46   ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Čermák @ 2019-08-13  9:11 UTC (permalink / raw)
  To: Bart Bunting, notmuch@notmuchmail.org

[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Moving notmucch between machines
  2019-08-13  9:11 ` Dan Čermák
@ 2019-08-13 10:46   ` David Bremner
  0 siblings, 0 replies; 3+ messages in thread
From: David Bremner @ 2019-08-13 10:46 UTC (permalink / raw)
  To: Dan Čermák, Bart Bunting, notmuch@notmuchmail.org

Dan Čermák <dan.cermak@posteo.net> writes:

> Hi Bart,
>
> Bart Bunting <bart@ursys.com.au> writes:
>
>> 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?
>

notmuch dump and restore are intended for jobs like this (as well as for
backing up the database in a relatively compact form).

> 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.

FWIW, nmbug is just a wrapper around notmuch dump and restore.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-13 10:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-13  6:16 Moving notmucch between machines Bart Bunting
2019-08-13  9:11 ` Dan Čermák
2019-08-13 10:46   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).