Apache Directory Project - Backing up ADS?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > February 2006 > Backing up ADS?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Backing up ADS?
Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@

2006-02-27, 7:45 am

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
Alex Karasulu

2006-02-27, 7:45 am

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


Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@

2006-02-27, 5: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@public.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


Alex Karasulu

2006-02-27, 5: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
>
>
>
>



Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@

2006-02-27, 5: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@public.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
>
>
>
>



Alex Karasulu

2006-02-27, 5: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


Simon.Temple-bNHniqfy2KDk7dXyY5I9mNBPR1lH4CV8@

2006-02-27, 5: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@public.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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com