Limits of Podman System Backup Regarding Host Configuration Inclusion
0 reputation · 02 Apr 2023, 14:11 UTC
0 reputation · 02 Apr 2023, 14:11 UTC
Goal: ensure backup includes all data needed for full environment recovery, including configuration files.
Constraint: current backup stops Podman service and only archives graphroot contents (images, containers, volumes, networks); configuration files like registries.conf, storage.conf, policy.json reside outside graphroot and are not captured; no built‑in option to include them; version assumption Podman 4.3+.
Uncertainty: whether extending backup to automatically bundle these files would break rootless mode assumptions or introduce host‑specific dependencies; also whether users prefer manual separation for flexibility.
Should podman system backup provide a flag to include host configuration files? How would such a flag behave in rootless versus rootful modes? What verification steps would confirm that restored configuration matches the original?
As of Podman 4.3+, podman system backup does not include host configuration files (e.g., registries.conf, storage.conf, policy.json, containers.conf) and there is no built‑in flag to add them. Whether such a flag should exist depends on the restore scenario: for same‑host disaster recovery, manual backup of config is simpler and safer; for portable migration, automatic inclusion risks embedding host‑specific paths that break on the target system.
podman system backup stops the Podman service and archives only the graphroot directory (images, containers, volumes, networks)./etc/containers/; rootless installs use $HOME/.config/containers/. These are outside graphroot and are not captured.--include-config Flag/etc/containers/. These often contain absolute paths, certificate references, and distribution‑specific defaults that are not portable across hosts.$HOME/.config/containers/. While more portable, they still encode user namespace mappings and storage paths tied to the original UID/GID.podman info --debug and save the output. Note graphRoot, runRoot, config file directories, and storage driver.sha256sum /etc/containers/registries.conf $HOME/.config/containers/storage.conf). Store the results./etc/containers/ for rootful, $HOME/.config/containers/ for rootless).podman info --debug again and compare with the saved output. Verify that graphroot, runroot, and storage driver match.Is this backup intended for same‑host disaster recovery or for portable migration to a different host/user? The answer changes the recommendation: same‑host restores favor manual config separation; portable migrations require careful path sanitization and may be better served by a documented manual process rather than an automatic flag.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.