On 2010-05-24 6:11 PM, Sam Varshavchik wrote:
> k...@cometawireless writes:
> 
>>   I've attempted to move mail from one hard disk to another. I had a
>> mail server up and running for months but after trying to fix a problem
>> I had with fetchmail it stopped working (in terms of sending and
>> receiving mail). I figured since I wanted to move it to a larger hard
>> drive anyway I'd just do a fresh install on a new hard drive and copy
>> the mail across. I'm using the same hardware so I couldn't run both at
>> once and rsync the mail across so I got a working install going and
>> recreated the accounts I have on the the old hard drive than copied the
>> mail over with the old hard drive sitting in a usb external hdd case.
>>   At first it looked like it worked as I could see all the mail I used
>> to have in my in boxes in the in boxes of the new server but when I try
>> to view  subfolders I'm told I cannot view the subfolder as it either
>> doesn't exist or it needs to be subscribed to.
>>  I copied everything across from the /var/vmail/ folders on my old hdd
>> (including the "subscriptions" files) so everything should be there that
>> was on the old hdd.
>>
>> I'm a novice so I'm not really sure what I'm doing. Was that the wrong
>> method? Is there some other place I need to update the subscriptions so
>> it finds these folders?
> 
> No, you should not have had to do anything. The only thing that you
> should do is copy everything in the maildir. However you can't just run
> a rather naive "cp -pr /var/vmail/mailbox/Maildir/*
> /var2/vmail/mailbox". Because folders are hidden subdirectories, a shell
> wildcard expansion of "*" will ignore them.
> 
> The best way to migrate maildirs is by using rsync with the -a option.

Hmmm... well, I've been using the naive cp -rp and have never noticed a
problem, but I've only ever used it to copy individual folders over...
but I thought I had done it before where there were subfolders that did
make it across.

Anyway - any chance you could provide the correct rsync syntax for the
equivalent above command?

>From the man page, I'm thinking something like:

rsync -av /var/mail/mailbox /var2/vmail/mailbox

?

------------------------------------------------------------------------------

_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to