Support #166
Backing Up LDAP Directory With Rsnapshot
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