Restore folder from backup (kolab 2.04)

Gelpi Andrea liste at gelpi.it
Wed Mar 4 19:34:58 CET 2009


Jacques Hylkema wrote:

. . .

> 
> For some debugging, I tried the following:
> su - kolab-r
> in the mailbox, I created an empty folder backup:
> mkdir backup
> chmod -R 700 backup
> ls -l
> drwx------ 2 kolab-r kolab-r 4096 2009-03-04 15:31 backup
> -rw------- 1 kolab-r kolab-r    4 2009-03-04 15:32 cyrus.cache
> -rw------- 1 kolab-r kolab-r  173 2009-03-04 15:32 cyrus.header
> -rw------- 1 kolab-r kolab-r   96 2009-03-04 15:32 cyrus.index
> drwx------ 2 kolab-r kolab-r 4096 2009-03-04 15:32 Trash
> 
> bash-3.2$ /kolab/bin/cyrreconstruct -r -f user/j^m^dekker/*@intronics.nl 
> <mailto:user/j^m^dekker/*@intronics.nl>
> user/j.m.dekker/Trash at intronics.nl 
> <mailto:user/j.m.dekker/Trash at intronics.nl>
> 
> bash-3.2$ /kolab/bin/cyrreconstruct -r -f user/j^m^dekker at intronics.nl 
> <mailto:user/j^m^dekker at intronics.nl>
> user/j.m.dekker at intronics.nl <mailto:user/j.m.dekker at intronics.nl>
> 
> bash-3.2$ /kolab/bin/cyrreconstruct -r -f user/j^m^dekker*@intronics.nl 
> <mailto:user/j^m^dekker*@intronics.nl>
> user/j.m.dekker at intronics.nl <mailto:user/j.m.dekker at intronics.nl>
> user/j.m.dekker/Trash at intronics.nl 
> <mailto:user/j.m.dekker/Trash at intronics.nl>
> 
> As you can see, the backupfolder never appears.
> 

If the folder is empty it doesn't appear. I confirm.

I found a solution, use cyradm and create the folder before reconstruct it.

as user kolab-r

cyradm --user manager localhost
> cm user/j^m^dekker/R--S at intronics.nl
> quit

su - kolab-r -c "cyrreconstruct -r -f user/j^m^dekker/R--S at intronics.nl"

Let me know if it works.

-- 
ing. Andrea Gelpi
***************************************************
La Terra non la abbiamo ereditata dai nostri avi,
ma la abbiamo presa in prestito dai nostri bambini.
***************************************************
We do not inherit the Earth from our parents,
but borrow it from our children.
***************************************************




More information about the users mailing list