ipa-backup(1)

πŸ“¦ version 4.13.4, in centos-stream 10, centos-stream 9, fedora 43, fedora 44

πŸ’Ύ ipa-backup β€” the glow-up for your IPA master

okay bestie, welcome to ipa-backup(1) from the IPA Manual Pages β€” yes, that IPA, the identity one, not the beer 🍺 (tho honestly both deserve a backup). This lil tool backs up an IPA master so you don't have a main-character meltdown later. Let's get into it πŸ’…


✨ SYNOPSIS ✨

ipa-backup [OPTION]...

that's it. that's the whole vibe. options only, no positional args, we're not doing all that πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so there are two kinds of backups: full and data-only. pick your fighter.

the backup is optionally encrypted using either the default root GPG key or a named key. and listen β€” no passphrase is supported. none. zero. not a thing. don't @ me πŸ™ˆ

backups get stored in a subdirectory inside /var/lib/ipa/backup. cute, organized, we love a system.

the naming convention for full backups is:

ipa-full-YEAR-MM-DD-HH-MM-SS

and it's in the GMT time zone. iconic consistency ✨

the naming convention for data backups is:

ipa-data-YEAR-MM-DD-HH-MM-SS

also in the GMT time zone. no cap.

inside that subdirectory there's a file, header, that describes the backup β€” it tells you the type, the system, the date of backup, the version of IPA, the version of the backup, and the services on the master. it's basically the backup's little ID card πŸͺͺπŸ’–

⚠️ okay important, bestie: a backup can not be restored on another host. and a backup can not be restored in a different version of IPA.

those two are hard nos. periodt. πŸ’€


🌸 OPTIONS 🌸

  • --data β€” back up data only. the default is to back up all IPA files plus data, so this is you choosing the lighter path πŸ“
  • --gpg β€” encrypt the backup file. set the GNUPGHOME environment variable if you wanna use a custom keyring and gpg2 configuration πŸ”
  • --logs β€” include the IPA service log files in the backup. receipts, preserved πŸ“œ
  • --online β€” perform the backup on-line. requires the --data option (they're a package deal, iykyk) 🌐
  • --disable-role-check β€” perform the backup even if this host does not have all the roles in use in the cluster. this is not recommended πŸ™ˆ proceed with caution, babe
  • -v, --verbose β€” print debugging information. loud and proud πŸ—£οΈ
  • -d, --debug β€” alias for --verbose. same energy, different letter ✨
  • -q, --quiet β€” output only errors. silent but deadly accurate 🀫
  • --log-file=FILE β€” log to the given file. write it down, keep the receipts πŸ“

πŸ’€ EXIT STATUS πŸ’€

  • 0 β€” if the command was successful πŸŽ‰ slay
  • 1 β€” if an error occurred 😭
  • 2 β€” if IPA is not configured 🫠

🧚 ENVIRONMENT VARIABLES 🧚

  • GNUPGHOME β€” use custom GnuPG keyring and settings (default: ~/.gnupg). it's giving "home but make it keys" πŸ πŸ”‘

πŸŽ€ FILES πŸŽ€

  • /var/lib/ipa/backup
    • the default directory for storing backup files πŸ’Ύ
  • /var/log/ipabackup.log
    • the log file for backups πŸ“‹

🌈 SEE ALSO 🌈

  • ipa-restore(1) β€” the part where you actually get it back, bestie πŸ”„
  • gpg2(1) β€” the encryption bestie πŸ’–

and that's the whole page, babe β€” go forth and back up responsibly ✨ this lil manual is brought to you by IPA and dated Mar 22 2013, so it's lowkey vintage but highkey still valid. take care of your master, drink water, and always keep a header file around πŸ«ΆπŸ’œ