Backup/restore process

Alain Spineux aspineux at gmail.com
Tue May 13 04:38:11 CEST 2008


On Mon, May 12, 2008 at 11:10 PM, Paul Douglas Franklin <pdf at yugm.org> wrote:
> Friday evening I attempted the backup and restore process at
> http://wiki.kolab.org/index.php/Backups_for_kolab2
> and ran into several problems.  I have diagnosed (but not tested) one of
> those as a permissions problem because the new system gave kolab-r a
> different UID.  But here are others:
> #1
> When I ran
>
> rm -rf /kolab/var/openldap/openldap-data/*
> /kolab/sbin/slapadd -l backup/ldap/kolab-ldap.ldif
>
> it gave me the following:
>
> Warning:  no DB_CONFIG file found in directory:  /kolab/var/openldap.

This is only a warning ! Is it blocking ?
DB_CONFIG contains the DB configuration of the Berkeley DB backend for  LDAP .
Here is my.


[root at eg01 ~]# ll  /kolab/var/openldap/openldap-data/DB_CONFIG
-rw-r----- 1 kolab kolab-r 838 May  6 15:33
/kolab/var/openldap/openldap-data/DB_CONFIG
[root at eg01 ~]# cat  /kolab/var/openldap/openldap-data/DB_CONFIG
# (c) 2005 Klaraelvdalens Datakonsult AB
#     Written by Steffen Hansen <steffen at klaralvdalens-datakonsult.se>
#
# This program is Free Software under the GNU General Public License (>=v2).
# Read the file COPYING that comes with this packages for details.

# this file is automatically written by the Kolab config backend and
should have the
# file mode 0640

set_cachesize   0       26214400        1
set_tmp_dir /dev/shm

#http://www.sleepycat.com/docs/api_c/env_set_lk_detect.html
#Set if the deadlock detector is to be run whenever
#a lock conflict occurs, and specify what lock request(s) should be rejected.
#
# DB_LOCK_DEFAULT
# Use whatever lock policy was specified when the database environment
# was created. If no lock policy has yet been specified,
# set the lock policy to DB_LOCK_RANDOM.
set_lk_detect DB_LOCK_DEFAULT


>
> #2
> This line looks strange to me:
>
> chown -R kolab\:kolab /kolab/var/openldap/openldap-data

The \ escape char is not needed here, you can use one of the two line bellow

# chown -R kolab:kolab /kolab/var/openldap/openldap-data
# chown -R kolab.kolab /kolab/var/openldap/openldap-data

>
> When I look at the chown documentation, I see nothing to explain the \
> after kolab.  Is the line typed correctly?
> --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
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>



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




More information about the users mailing list