[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: export directory in LDIF format
- To: OpenLDAP Technical Discussion list <openldap-technical@openldap.org>, Jerry <jerry@seibercom.net>
- Subject: Re: export directory in LDIF format
- From: Andrew Findlay <andrew.findlay@skills-1st.co.uk>
- Date: Tue, 11 Nov 2014 16:46:04 +0000
- Content-disposition: inline
- In-reply-to: <20141111074619.038904f6@scorpio>
- References: <20141110070058.0a8ad9ff@scorpio> <381034F1854D9E8E3716F2ED@quanah-mac.local> <20141111074619.038904f6@scorpio>
- User-agent: Mutt/1.5.21 (2010-09-15)
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 |
-----------------------------------------------------------------------