GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       ldap-git-backup - check in LDIF from an LDAP server into a GIT


       ldap-git-backup [options]

       ldap-git-backup --help


       ldap-git-backup takes an LDIF dump of an LDAP server and updates a GIT
       repository that serves as a versioned backup.

       ldap-git-backup splits the LDIF data into separate entries.  It
       constructs unique but stable file names using a combination of the
       creation time stamp for ordering and the DN as the unique key for an


       --ldif-cmd <dump_ldif_command>
           Specify a command to create a complete LDIF dump of the LDAP
           directory suitable for a backup.  It should contain all entries
           necessary to restore the LDAP database.  By default
           "/usr/sbin/safe-ldif" is taken which calls "/usr/sbin/slapcat" from

           If you have access to an LDAP server over the network you can use
           ldapsearch as your "--ldif-cmd".  Example:

             --ldif-cmd 'ldapsearch -u -x -o ldif-wrap=no \
             -H ldaps:// -b dc=example,dc=org'

           If you need to log in to a certain server first you would use
           something along the lines of

             --ldif-cmd 'ssh ldapsearch -u -x -o ldif-wrap=no \
             -H ldaps:// -b dc=example,dc=org'

           You can make this as complicated as you like as long as it fits
           into a one line command.  If you need more you may want to create a
           script for the purpose.

       --backup-dir <backup_directory>
           Specify the directory where the GIT repository for the versioned
           backup is held.  Default: /var/backups/ldap

       --commit-msg <commit_string>
           Specify a custom commit message.  Default: ldap-git-backup


             --commit-msg "Import $(date --rfc-3339=seconds)"

       --commit-date <date_string>
       --commit-date <file>
           Specify a custom commit date.  If a file is given its modification
           time is used.

           Do not perform a garbage collection (git gc) after checking in the
           new backup.  By default gc is done so as to keep the size of the
           backup down.  You may want to skip gc for the occasional backup run
           but leave it on for the scheduled backups.

           Prints this page.


       Elmar S. Heeb <>

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.087 seconds. Last modified: November 04 2018 12:49:43.