SAFE-LDIF(1)

πŸ“¦
version 1.0.8 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

safe-ldif β€” bestie, this one verifies AND dumps an LDIF file so you can back it up πŸŽ€ it's giving "trust but verify" energy and honestly? iconic.


✨ SYNOPSIS ✨

ldap-git-backup [--ldif-cmd=</path/to/ldif-dump>]

ldap-git-backup --help

okay so yes, the command is literally spelled ldap-git-backup up there and not safe-ldif β€” no, that's not a typo I made, that's just how it is, iykyk πŸ™ˆ copy it exactly bestie.


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: it runs whatever command you handed to --ldif-cmd multiple times πŸ” and then it gives you back the last output β€” but only as soon as two consecutive invocations spit out the same number of LDIF stanzas. Like, it's waiting for the dump to stop changing between runs. Consistency check, but make it slay. πŸ’…

Basically: no stable stanza count, no final answer. Two matching runs in a row? Boom, you get your output. periodt.


🌸 OPTIONS 🌸

  • --ldif-cmd <dump_ldif_command> β€” bestie this is the whole moment. You tell it a command that makes a complete LDIF dump of your LDAP directory, one that's good enough to actually be a backup 🫢. It should contain all the entries you'd need to restore the LDAP database, no cap. If you don't say anything, the default is /usr/sbin/slapcat from OpenLDAP β€” she's the default queen πŸ‘‘.
  • --help β€” prints this page. that's it, that's the whole job, and she does it flawlessly ✨

πŸ’œ AUTHOR πŸ’œ

Elmar S. Heeb <elmar@heebs.ch> β€” ty for your service, king 🫑


heads up bestie: this page is from the User Commands manual, version 1.0.8, dated 2021-01-06 πŸ’– go forth and back up responsibly, mwah πŸŽ€πŸŒˆβ­
πŸ“¦ where this page comes from