Project

General

Profile

Support #166

Backing Up LDAP Directory With Rsnapshot

Added by Daniel Curtis over 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Domain Controller
Target version:
-
Start date:
08/12/2013
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

Creating a backup of an LDAP directory is both useful and simple. So simple that it can be setup for periodic backups with rsnapshot in just a few commands.

  • 1. Create backup script to dump LDAP directory
    sudo vi /usr/local/bin/backup_ldap.sh
    

#!/bin/bash
#Script to dump LDAP directory
slapcat -l backup.ldif

  • 2. Make the script executable
    sudo chmod +x /usr/local/bin/backup_ldap.sh
    
  • 3. Add script to rsnapshot to the bottom of configuration, remember to keep tab-delimitation
    sudo vi /etc/rsnapshot.conf
    

...
backup_script /usr/local/bin/backup_ldap.sh localhost/ldapdump/
...


Related issues

Related to GNU/Linux Administration - Feature #162: Installing OpenLDAP with phpLDAPAdmin on DebianClosedDaniel Curtis08/08/2013

Actions
#1

Updated by Daniel Curtis over 11 years ago

  • Description updated (diff)
#2

Updated by Daniel Curtis over 11 years ago

  • Description updated (diff)
#3

Updated by Daniel Curtis over 11 years ago

  • Description updated (diff)
#4

Updated by Daniel Curtis over 11 years ago

  • Description updated (diff)
#5

Updated by Daniel Curtis over 11 years ago

  • Description updated (diff)
#6

Updated by Daniel Curtis almost 10 years ago

  • Project changed from 22 to GNU/Linux Administration
  • Category set to Domain Controller

Also available in: Atom PDF