Add incremental backup and restore - #1
Open
Chyenne8 wants to merge 1 commit into
Open
Conversation
Chyenne8
force-pushed
the
incremental-backup-restore
branch
2 times, most recently
from
June 30, 2026 17:55
2ecaa0d to
bd5f415
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
8 times, most recently
from
July 22, 2026 16:00
9f89545 to
83aee45
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
2 times, most recently
from
July 29, 2026 17:24
e37c295 to
81bca87
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
3 times, most recently
from
August 6, 2026 17:15
6411387 to
63979aa
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
4 times, most recently
from
August 19, 2026 12:46
f6aea40 to
e93a175
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
3 times, most recently
from
August 26, 2026 13:46
7c91343 to
ccd94ce
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
2 times, most recently
from
September 2, 2026 17:57
9a5d1ab to
0090707
Compare
Chyenne8
force-pushed
the
incremental-backup-restore
branch
from
September 2, 2026 18:01
0090707 to
9cfee82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements full incremental backup/restore capability using GNU tar's
--listed-incrementalmechanism. Reduces backup time and storage for large Pulp deployments by only backing up changed files.Backup Features
Add
--incrementalCLI parameter:Implementation:
--listed-incrementalwith .snar snapshot files.config.snartracks foremanctl state changes.pulp.snartracks Pulp content changescommunity.general.archivewith raw tar for--listed-incrementalsupportis_incremental,base_backup_dir,base_backup_timestampError handling automation:
Restore Features
Auto-detect incremental backups from metadata:
metadata.ymlto identify backup typeBackup chain validation:
.last_restore_timestampAdd
--chainfor automatic chain restore:Chain restore automation:
--listed-incremental=/dev/nullHandle .snar files during restore:
--listed-incremental=/dev/nullfor extractionUsage Examples
Create full backup (generates .snar files):
Create incremental backup:
Restore with auto-chain (recommended):
Manual chain restore:
Validate incremental backup:
Testing
Backup:
.config.snarand.pulp.snarfilesRestore:
--chainautomatically handles dependenciesFiles Modified
Backup:
src/playbooks/backup/metadata.obsah.yamlsrc/roles/backup/tasks/main.yamlsrc/roles/backup/tasks/pulp_content.yamlsrc/roles/backup/tasks/metadata.yamldocs/user/backup.mdRestore:
src/playbooks/restore/metadata.obsah.yamlsrc/roles/restore/tasks/validate.yamlsrc/roles/restore/tasks/main.yamlsrc/roles/restore/tasks/restore_pulp_content.yamlsrc/roles/restore/tasks/restore_foremanctl_state.yamlsrc/roles/restore/tasks/restore_databases.yamlsrc/roles/restore/tasks/restore_chain.yaml(new)src/roles/restore/tasks/restore_chain_walk.yaml(new)src/roles/restore/tasks/restore_single.yaml(new)docs/user/restore.mdStats