Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 37029 invoked from network); 16 Dec 2010 16:00:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Dec 2010 16:00:04 -0000 Received: (qmail 84522 invoked by uid 500); 16 Dec 2010 16:00:02 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 84296 invoked by uid 500); 16 Dec 2010 15:59:59 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 84288 invoked by uid 99); 16 Dec 2010 15:59:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 15:59:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of johnlicheng@gmail.com designates 209.85.160.178 as permitted sender) Received: from [209.85.160.178] (HELO mail-gy0-f178.google.com) (209.85.160.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Dec 2010 15:59:53 +0000 Received: by gyh4 with SMTP id 4so2028021gyh.37 for ; Thu, 16 Dec 2010 07:59:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=oseJXc+1fZJKaRqmliZC+je+prMyrJ2Dsf0yqejTo80=; b=dMbsC8RN5MWli/ZOUJ1ZLBJzwdY6dlKJ6o6p36RGS1h8mf0azDRBHKTTH8kRT9frLm lb6nckSWpUjik04FJZhnt1yCWj4oUHOLT0PdoVRmoHn8Re9v7zKJ0mZB1SVJcAGTAjKC Wn4fdAXpCEg4L5YTBlazPh+/35cgb3FHblZ/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=d6hebakdzHra3RVfwmb/trNYZSc7PEA+sgwCtpMcCWGg6L2Srxi0MMWqh1uYq3EeCn 02gXwLu+Dh1JE7t1bEq2z+0cZs8DhbEUYT0+F73s4XEynpkQAN4K0nvhvMLhuLyqcVpz nBPhlc1qdLPIySQ/q52FWHORG3FkCVR9ueB9U= Received: by 10.100.128.10 with SMTP id a10mr5450763and.96.1292515172389; Thu, 16 Dec 2010 07:59:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.172.12 with HTTP; Thu, 16 Dec 2010 07:59:12 -0800 (PST) In-Reply-To: References: From: John Cheng Date: Thu, 16 Dec 2010 07:59:12 -0800 Message-ID: Subject: Re: Backing up ApacheDS To: users@directory.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Wed, Dec 15, 2010 at 8:41 PM, Kiran Ayyagari wrote: > > On Thu, Dec 16, 2010 at 3:52 AM, John Cheng wrote: > >> > Apologize for the newbie question. But, I have small instance of ApcheDS > >> > running and I would like to make sure my data gets backed up. Is this as > >> > simple as just copying the partitions folder or??? > >> The best would be to run a cron task (on linux) to get all the entries > >> extracted as LDIF, say, every hour. This is a guaranteed way to get > >> your data straight. > >> > > > > Hi Emmanuel, > > > > Is the apacheds-tools.jar capable of doing backup/restores? A search on > > the archives seem to indicate that it is broken and one should use > > OpenLdap tools to perform backup/restore via the command line > > > > http://web.archiveorange.com/archive/v/DCLZ8EQq6MXcLPfXYRB3 > > > > Trying the command > > > > java -jar apacheds-tools.jar dump -i /path/to/apacheds -p system > > > > Yielded java.lang.ClassNotFoundException: > > org.apache.directory.daemon.InstallationLayout > > > the best is to export all the data into a LDIF file and use as backup. > yes the server-tools is broken and is not supported at the moment > > > On a subject that relates to backups, is replication not working in > > ApacheDS 1.5.7? > no, it is not working in 1.5.7 but the trunk has support for > master/slave replication (rfc4533 a.k.a syncrepl) > may be you can consider upgrading your server to the latest in a dev > environment and see > > -- > Kiran Ayyagari I am looking into using ApacheDS as a production LDAP server and I am trying to find an export tool that is both Java-based and can be scripted. Is there a pure Java export tool? ApacheDS Studio is Java but is a GUI. OpenDS is Java but only works with OpenDS from what I can gather. OpenLDAP's "ldapsearch" is a command line tool, but is not based on Java. So my only option is OpenLDAP tools, I would like to avoid that dependency if possible. -- --- John L Cheng