# FreeIPA backup in practice: ipa-backup, certificates, LDAP and recovery windows

Source: https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery
Language: en
Published: 2026-10-16
Updated: 2026-11-23

Practical FreeIPA backup guide: ipa-backup, data scope, certificates, retention, restore windows and verifiable backup acceptance.

## Overview

Part 9 makes FreeIPA backup operationally tangible. FreeIPA backup is not just files: it covers LDAP data, Kerberos, CA material, certificates, replication state and whether a restore can be tested in time.

[![FreeIPA Web UI after login in the Fedora 44 sudo lab](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)

## Lab Baseline

```text
Domain:        example.test
Realm:         EXAMPLE.TEST
Primary:       ipa01.example.test
Replica:       ipa02.example.test
Client:        client01.example.test
Distribution:  Fedora Linux 44
Goal:          production-like FreeIPA operations without using real customer domains
```

## What a FreeIPA Backup Must Cover

- Back up directory data and identity objects reproducibly.
- Do not lose CA and certificate material.
- Store backups encrypted and access-restricted.
- Document restore target, time window and responsibilities.
- Regularly perform restore tests outside production.

## Create the Backup

\`ipa-backup\` is the central entry point. For operations documentation, record timestamp, hostname, FreeIPA version, backup path and hashes.

```bash
backup_root=/root/ipa-backups/$(date +%F-%H%M)
mkdir -p "$backup_root"

hostname -f | tee "$backup_root/hostname.txt"
ipa --version | tee "$backup_root/ipa-version.txt"
ipactl status | tee "$backup_root/ipactl-status-before-backup.txt"

ipa-backup --data --logs | tee "$backup_root/ipa-backup.log"
find /var/lib/ipa/backup -maxdepth 2 -type f -printf '%p
' | sort | tee "$backup_root/backup-files.txt"
sha256sum /var/lib/ipa/backup/*/* 2>/dev/null | tee "$backup_root/sha256sums.txt"
```

## Store the Backup Safely

The backup contains sensitive identity and key material. It must not live only on the same host. Transfer, target and retention need controls.

```bash
rsync -aH --numeric-ids --chmod=go-rwx   /var/lib/ipa/backup/   backup01.example.test:/srv/backup/freeipa/ipa01.example.test/

ssh backup01.example.test   'find /srv/backup/freeipa/ipa01.example.test -maxdepth 2 -type f -ls'
```

## Define the Restore Window

A backup is only reliable when it is clear how long restore may take and which dependencies must exist: DNS, time, hostname, network, Fedora version, storage and access credentials.

| Point | Why it matters | Evidence |
| --- | --- | --- |
| Hostname/FQDN | FreeIPA is name-sensitive | ipa01.example.test documented |
| Time/NTP | Kerberos tolerates only small clock skew | chronyc tracking |
| DNS | clients and replicas find servers by name | dig and getent |
| Backup integrity | broken archives fail before the emergency | sha256sum and restore test |
| Access | backup data is highly sensitive | 0600/0700, separated admin roles |
| Restore target | emergency needs a clear target | runbook and test VM |

## Regular Restore Test

At least one technical restore in an isolated environment should be part of operations. Do not overwrite production; use a test system with identical naming/network assumptions or deliberately isolated DNS visibility.

```bash
# On an isolated restore test system, not directly on production:
ipa-restore /var/lib/ipa/backup/ipa-full-YYYY-MM-DD-HH-MM-SS
ipactl status
kinit admin
ipa user-find --sizelimit=5
ipa host-find --sizelimit=5
```

## Result Check

| Area | Check | Result |
| --- | --- | --- |
| Backup | ipa-backup runs successfully | PASS required |
| Data | backup files and logs exist | PASS required |
| Integrity | hashes created and stored | PASS required |
| Security | backup access-restricted and offloaded | PASS required |
| Restore | isolated restore test documented | PASS required |
| Identity | kinit, user-find, host-find after restore | PASS required |

## Do Not Skip This

- Do not confuse backup with restore capability.
- Store backup data encrypted and separate from the FreeIPA system.
- Restore regularly in isolation.
- Document DNS, time and hostname as restore dependencies.

## Hero image

[![FreeIPA Web UI after login in the Fedora 44 sudo lab](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)

## Author

Mathias Rumbold

## Category

- [Identity & Access](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?category=identity-access)

## Tags

- [FreeIPA](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=freeipa)
- [Identity Management](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=identity-management)
- [Linux](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=linux)
- [Kerberos](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=kerberos)
- [Security](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=security)
- [Red Hat IdM](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=red-hat-idm)
- [fedora](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery?tags=fedora)

## Need clean identity operations?

ForgeOne supports FreeIPA, Fedora, SSSD, Kerberos, backup, recovery, high availability and technical acceptance.

[Discuss an identity project](https://forgeone.solutions/en/contact)

## Identity Management mit FreeIPA und Keycloak

Die Beiträge bauen praktisch aufeinander auf: Fedora-44-basierter FreeIPA-Server, Linux-Clients, Identity-Lifecycle, Passwort-Richtlinien, HBAC, sudo-Regeln, Kerberos-Keytabs, Updates, Backup, Recovery und Hochverfügbarkeit.

1. [Installing FreeIPA: From the First Server to an Enrolled Linux Client](https://forgeone.solutions/en/tech/install-freeipa)
2. [Connect Linux Clients to FreeIPA: SSSD, Kerberos and Centralized Users](https://forgeone.solutions/en/tech/connect-linux-clients-freeipa-sssd-kerberos-centralized-users)
3. [Managing FreeIPA Users and Groups: Identity Lifecycle in Practice](https://forgeone.solutions/en/tech/managing-freeipa-users-groups-identity-lifecycle-practice)
4. [FreeIPA Password Policies in Practice: Expiration, Lockout and Authentication Behavior](https://forgeone.solutions/en/tech/freeipa-password-policies-expiration-lockout-practice)
5. [FreeIPA HBAC in Practice: Control SSH Access by User, Group and Host](https://forgeone.solutions/en/tech/freeipa-hbac-ssh-access-user-group-host-practice)
6. [FreeIPA sudo rules in practice: delegate commands without root passwords](https://forgeone.solutions/en/tech/freeipa-sudo-rules-command-delegation-practice)
7. [Kerberos service principals and keytabs with FreeIPA in practice](https://forgeone.solutions/en/tech/freeipa-kerberos-service-principals-keytabs-practice)
8. [Updating FreeIPA: package updates, replicas and client compatibility checks](https://forgeone.solutions/en/tech/freeipa-update-package-updates-replicas-client-compatibility)
9. [FreeIPA backup in practice: ipa-backup, certificates, LDAP and recovery windows (current part)](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery)
10. [FreeIPA disaster recovery: restore, replica rebuilds and emergency access testing](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access)
11. [Running FreeIPA highly available: replication, CA roles, DNS and maintenance workflows](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance)

## Further content

- [FreeIPA](https://forgeone.solutions/en/products/freeipa)
