[389-users] Database to LDIF without running DS?

Rich Megginson rmeggins at redhat.com
Mon Dec 8 15:05:14 UTC 2014


On 12/08/2014 04:54 AM, Jan Tomasek wrote:
> Hello,
>
> I did stupid mistake and deleted some entries... only backup I do have 
> are *db4 files from filesystem backup.
>
> Is there any chance how to convert them to LDIF without running DS?
>
> I can't restore them to place where active database is running. And I 
> do not see other way how to use db2ldif.pl.
>
> Thanks

You could use dbscan -f /path/to/backup-db/id2entry.db4 , then grep for 
the data you want to use, then use perl/sed/awk to parse the ldif and 
format it correctly.  That way you could extract only the missing data 
without having to restore everything.




More information about the 389-users mailing list