OnWorks favicon

ldap-git-backup - Online in the Cloud

Run ldap-git-backup in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ldap-git-backup that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



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


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 entry.


--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 OpenLDAP.

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://ldap.example.org -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 host.example.org ldapsearch -u -x -o ldif-wrap=no \
-H ldaps://ldap.example.org -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.

Use ldap-git-backup online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    It ha...
    Download Shadowsocks
  • 2
    GLPI Themes
    GLPI Themes
    Download release at
    Color themes for GLPI 0.84 and 0.85 New
    Modifications for GLPI This is an
    application that c...
    Download GLPI Themes
  • 3
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    Download SMPlayer
  • 4
    AAX to MP3
    AAX to MP3
    Usage: - Install the Audible Manager
    and open a file of your account. - Sign
    in into your audible account (in the
    application). Now the program can
    convert you...
    Download AAX to MP3
  • 5
    TestLink is a web based Test Management
    tool. The application provides Test
    specification, Test plans and execution,
    Reporting, Requirements specification
    and ...
    Download TestLink
  • 6
    XDXF - XML Dictionary Exchange Format
    XDXF - XML Dictionary Exchange Format
    XDXF is a project to unite all existing
    open dictionaries and provide both users
    and developers with universal XML-based
    format, convertible from and to other ...
    Download XDXF - XML Dictionary Exchange Format
  • 7
    Transmission Remote GUI
    Transmission Remote GUI
    Transmission Remote GUI is a feature
    rich cross platform front-end to
    remotely control a Transmission
    Bit-Torrent client daemon via its RPC
    protocol. Transmissi...
    Download Transmission Remote GUI
  • More »

Linux commands