Backup/restore process

Alain Spineux aspineux at gmail.com
Thu May 22 19:36:26 CEST 2008


On Thu, May 22, 2008 at 6:34 PM, Paul Douglas Franklin <pdf at yugm.org> wrote:
>
>
> Alain Spineux wrote:
>
> On Thu, May 22, 2008 at 2:03 AM, Paul Douglas Franklin <pdf at yugm.org> wrote:
>>
>> Alain Spineux wrote:
>>>
>>> On Mon, May 19, 2008 at 11:15 PM, Paul Douglas Franklin <pdf at yugm.org>
>>> wrote:
>>>
>>>>
>>>> Alain Spineux wrote:
>>>>
>>>> On Mon, May 19, 2008 at 12:19 AM, Paul Douglas Franklin
>>>> <kolab at paulfranklin.org> wrote:
>>>>
>>>>
>>>> I tried the backup/restore process again.  I ran into two problems:
>>>> 1)  When it runs the line:
>>>> su - kolab-r -c "/kolab/bin/ctnl_mboxlist -u" <
>>>> /oldserver/backup/imapd/mailboxlist.txt
>>>> it returns the result:
>>>> fatal error: can't read mailboxes file.
>>>>
>>>>
>>>> check the owner and rights on files in /kolab/var/imap directory
>>>>
>>>>
>>
>> The owner of /kolab/var/imapd is kolab-r.  Full rights for the owner.
>>  Should I log in as kolab-r before running this script?  I was trying to run
>> it as root.
>
> I  was not sure, then I looked in the wiki, now I know :-)
>
> http://wiki.kolab.org/index.php/Backups_for_kolab2
>
> Ok, some things just jumped out at me:
> 1.  Asking whether I need to log in as kolab-r before running this script
> wasn't a very good question considering that the line in question starts
> with su - kolab-r.
> 2.  Based on that, I didn't really need to look at the wiki to get the
> answer, but I did anyway.  And saw:
> 3.  In the "Components" section of the wiki, it talks about backing up and
> restoring the list of mailboxes.  But in the "Playback" section, it leaves
> out the restore line which has been giving me trouble above.  Being the
> eagle-eyed person I am, I added it.  It now occurs to me that the person who
> wrote the wiki probably meant not to put that in, that it is not needed if
> rsync -avz backup/imapd/ /kolab/var/imapd/

This command restore mailbox.db too,
but have a dump of this file is not a too much.

The wiki as far to be perfect or even error free :-(

> correctly restores mailboxes.db.
> Have I finally seen the light?
> --Paul
>
> --
> Paul Douglas Franklin
> Computer Manager, Union Gospel Mission of Yakima, Washington
> Husband of Danette
> Father of Laurene, Miriam, Tycko, Timothy, Sarabeth, Marie, Dawnita, Anna
> Leah, Alexander, and Caleb



-- 
Alain Spineux
aspineux gmail com
May the sources be with you




More information about the users mailing list