[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: export directory in LDIF format



On Tue, Nov 11, 2014 at 07:46:19AM -0500, Jerry wrote:

> This is the actual code I am using in CRON:
> 
> nice /usr/local/sbin/slapcat -f /usr/local/etc/openldap/slapd.conf -b "dc=MyDomain,dc=net"  -l usr/home/gerard/LDAP_Backup/MyDomain.net.ldif

Try running it under 'strace' so you can see what file it really tried to open. e.g.

strace -o /tmp/slapcat-trace.`date +%Y%m%d%H%M` /usr/local/sbin/slapcat -f /usr/local/etc/openldap/slapd.conf -b "dc=MyDomain,dc=net"  -l usr/home/gerard/LDAP_Backup/MyDomain.net.ldif

> Originally, I had created a Bash script and had CRON call that script; however, when things were not working as planned, I thought that might be the problem. However, it does not appear to be so.
> 
> Any ideas what I could be doing wrong? Remember, this only happens when there has been several hours of inactivity; otherwise it works fine.

Do any of the paths involved in the config go through NFS or automount points?

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------