Best way to move large Maildir to another machine?

Cameron Simpson cs at cskk.id.au
Wed Nov 25 23:38:48 UTC 2020


On 25Nov2020 22:30, Dave Woodfall <dave at tty1.uk> wrote:
>I have a Maildir folder which I want to move to another machine:
>about 830M with 29000 messages.
>
>Would just rsync'ing or scp'ing be OK?

Yes. Use "scp -p" if you use scp, preserves permissions and timestamps 
(actually not very important unless you're following up with rsync to 
check).

I'd expect rsync to be faster than scp, and personally I'd use "cd 
the-mailddir; tar cf 
- . | ssh remote 'cd remote-maildir; tar xf -'" which should be much 
  faster than either.

If the maildir is "active" I'd follow up with rsync afterwards, when it 
is idle, to catch any changes which may have occurred.

>I'm asking because I noticed that either procmail or getmail puts the
>hostname in the file names, and I wondered if this would cause
>problems at the other end or not when I've setup getmail+procmail on
>it?

That will not be a problem. The hostname is just one of the values used 
to make a unique nonconflicting filename. It has no meaning afterwards.

>Renaming all the files is possible I guess, but would be a task.

And unnecessary.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Mutt-users mailing list