backup ldap server with rsync

7 Feb

1. check id user

############# server A #############

[root@linux ~]# id TISU uid=690(TISU) gid=100(users) groups=100(users),794(user_oracle),842(au_bahan),848(au_labst22),

1505(ca_umum),1040(rdsvr_sketsa2_divisilain),

1041(rdsvr_fotofull_divisilain),1055(hpp_rw)

############# server B #############

[root@rdsvr ~]# id TISU uid=690(TISU) gid=100(users) groups=100(users),794(user_oracle),842(au_bahan),848(au_labst22),

1505(ca_umum),1041(rdsvr_fotofull_divisilain),1055(hpp_rw)

~ id TISU, not sync in server A and B

2. rsysnc from server A to server B

############# server A #############

[root@linux ~]# rsync -avz /var/lib/ldap/ root@172.20.140.32:/var/lib/ldap

3. restart ldap

############# server B #############

[root@rdsvr ~]# service ldap restart

Stopping slapd: [ OK ]

Checking configuration files for slapd: [ OK ]

Starting slapd: [ OK ]

[root@rdsvr ~]# id TISU uid=690(TISU) gid=100(users) groups=100(users),794(user_oracle),842(au_bahan),848(au_labst22),

1505(ca_umum),1040(rdsvr_sketsa2_divisilain),

1041(rdsvr_fotofull_divisilain),1055(hpp_rw)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: