Backup your LDAP

slapcat -n 1 > /backup/`date "+%Y%m%d"`.ldif
Simple way to backup your LDAP entries: put this line on your crontab. The -n switch identifies the dbnum you want to backup (alternatively you can use -b suffix. Check man slapcat for your personal switches)

2010-05-07 15:52:39

What Others Think

Thanks for discussing the Zoho Mail Backup Tool and everything related to it including the code is shared their which makes it easy for the people to try out the code and everything is well explained which makes it more clear for the people about the topic buy cheap diamond rings
Kaitlyn · 64 weeks and 5 days ago
sudoku puzzles is great entertainment for you and everyone. Here you can find the most loved games of all time, they are completely free and suitable for all ages!
KevinDurant · 35 weeks ago
I have no idea on how to Backup the LDAP and nothing about the code is shared here. So those who are interested in knowing about the code can use the details provided here. Lab grown diamonds This is a good page for the IT professionals
Dwyane · 11 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: