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. # 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 /var/backups/backup.ldif # Make the script executable <pre> sudo chmod +x /usr/local/bin/backup_ldap.sh </pre> # 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/ > ...