Support #166
Updated by Daniel Curtis over 11 years ago
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 <pre> sudo vi /usr/local/bin/backup_ldap.sh </pre> > #!/bin/bash > #Script to dump LDAP directory > slapcat -l backup.ldif /var/backups/backup.ldif * 2. Make the script executable <pre> sudo chmod +x /usr/local/bin/backup_ldap.sh </pre> * 3. Add script to rsnapshot to the bottom of configuration, remember to keep tab-delimitation <pre> sudo vi /etc/rsnapshot.conf </pre> > ... > backup_script /usr/local/bin/backup_ldap.sh localhost/ldapdump/ localhost/ > ...