ldapbackup

Hi,1.I want to backup my ldap database to ldif file on daily basis.2.I want that ldif file created should be named after the date of creation.Any Help is appreciated.TIANawaz
[216 byte] By [Nawaz_ita] at [2007-11-27 2:37:00]
# 1

Hi,

you can do it with a simple shell script (on unix).

use the date command (date +%d-%m-%Y) to get the present date to "extn" variable. Append it to the filename backup.${extn}.ldif (like backup.04-27-2007.ldif). Use this filename in the export command db2ldif.

db2ldif -n userroot -a /Dir/backup.${extn}.ldif

Hope this helps. Please make sure to purge old files else your FS would be full one day.

Regards

Randip

Randip_Malakara at 2007-7-12 2:56:49 > top of Java-index,Web & Directory Servers,Directory Servers...