Backing up ADS?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > Backing up ADS?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Backing up ADS?  
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 12:45 PM

I'm not sure how we should go about backing up the content of the directory 
server used by a 24/7 system.

What operational procedure(s) do the group recommend?

Regular LDIF export of whole tree
DSML export...
Backup of raw JDBM folders
?

TIA

Simon T





[ Post a follow-up to this message ]



    Re: Backing up ADS?  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 12:45 PM

Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:

> I'm not sure how we should go about backing up the content of the
> directory server used by a 24/7 system.
>
> What operational procedure(s) do the group recommend?

How large is the data set in terms of the number of entries?

Alex







[ Post a follow-up to this message ]



    Re: Backing up ADS?  
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 10:45 PM





Typically up to 500 organisational entries with 5 to 10 entries below
each... say 5000 entries max

27 February 2006 13:46
To: Apache Directory Developers List <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@p
ublic.gmane.org>
cc:
From: Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org>
Subject: Re: Backing up ADS?



Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:

> I'm not sure how we should go about backing up the content of the
> directory server used by a 24/7 system.
>
> What operational procedure(s) do the group recommend?

How large is the data set in terms of the number of entries?

Alex







[ Post a follow-up to this message ]



    Re: Backing up ADS?  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 10:45 PM

I'd dump an LDIF into svn for something that small.

Alex


Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:

>
>
>Typically up to 500 organisational entries with 5 to 10 entries below
>each... say 5000 entries max
>
>27 February 2006 13:46
>To: Apache Directory Developers List <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@
public.gmane.org>
>cc:
>From: Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org>
>Subject: Re: Backing up ADS?
>
>
>
>Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:
>
>
> 
>
>How large is the data set in terms of the number of entries?
>
>Alex
>
>
>
>







[ Post a follow-up to this message ]



    Re: Backing up ADS?  
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 10:45 PM





Is there some server-side code I can call to generate the LDIF or do I have
to use a client like JXplorer, or a client API?

Simon.

27 February 2006 15:09
To: Apache Directory Developers List <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@p
ublic.gmane.org>
cc:
From: Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org>
Subject: Re: Backing up ADS?



I'd dump an LDIF into svn for something that small.

Alex


Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:

>
>
>Typically up to 500 organisational entries with 5 to 10 entries below
>each... say 5000 entries max
>
>27 February 2006 13:46
>To: Apache Directory Developers List <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@
public.gmane.org>
>cc:
>From: Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org>
>Subject: Re: Backing up ADS?
>
>
>
>Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:
>
>
> 
>
>How large is the data set in terms of the number of entries?
>
>Alex
>
>
>
>







[ Post a follow-up to this message ]



    Re: Backing up ADS?  
Alex Karasulu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 10:45 PM

Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:

>
>
>Is there some server-side code I can call to generate the LDIF or do I have
>to use a client like JXplorer, or a client API?
>
>
You want ApDS to backup stuff itself?  Interesting idea.  I wrote a
changelog interceptor example which generates a LDIF changelog for my
last AC prezo.  I have the code for a way old version of the server here
in the safehaus sandbox repo.  BTW the username/password to the safehaus
sandbox repository is guest/guest.

https://svn.safehaus.org/repos/sandbox/apachecon

If you'd like to fix the code so it runs in here you can commit it
back.  I can help you with this if you get stuck.  It's really good code
to follow for building a nice changelog which can be put into SVN.  Also
TMATE makes a great SVN library which can be used to commit the change
log every night.

If you want to talk about this fast you can skype me.  My handle is
akarasulu.

Laters,
Alex







[ Post a follow-up to this message ]



    Re: Backing up ADS?  
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 10:45 PM





That looks really interesting Alex... I'll have a play.

However, I think what I'm after is far more modest.  I'd like to add a new
method to my MBean.  Something like:

public void saveDirectoryAsLDIF();

And simply dump the whole directory tree to an offline stash area.

If the JDBM file system becomes corrupt or damaged, I'd like to drop the
LDIF file into the ADS import folder and restart the server (after removing
the physical file storage of cause).

So I guess I need so general directy tree traversal with LDIF writer
code...?


Simon

27 February 2006 16:42
To: Apache Directory Developers List <dev-aYN4UCa7k1r1N9kud6OZbmD2FQJk+8+b@p
ublic.gmane.org>
cc:
From: Alex Karasulu <aok123-Bdlq13kUjeyLZ21kGMrzwg@public.gmane.org>
Subject: Re: Backing up ADS?



Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@public.gmane.org wrote:

>
>
>Is there some server-side code I can call to generate the LDIF or do I
have
>to use a client like JXplorer, or a client API?
>
>
You want ApDS to backup stuff itself?  Interesting idea.  I wrote a
changelog interceptor example which generates a LDIF changelog for my
last AC prezo.  I have the code for a way old version of the server here
in the safehaus sandbox repo.  BTW the username/password to the safehaus
sandbox repository is guest/guest.

https://svn.safehaus.org/repos/sandbox/apachecon

If you'd like to fix the code so it runs in here you can commit it
back.  I can help you with this if you get stuck.  It's really good code
to follow for building a nice changelog which can be put into SVN.  Also
TMATE makes a great SVN library which can be used to commit the change
log every night.

If you want to talk about this fast you can skype me.  My handle is
akarasulu.

Laters,
Alex







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:37 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register