Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Oct 28, 2024
1 parent 75b11db commit 2740cd3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ project:
- [UEFI / BIOS (pflash devices)](#uefi--bios-pflash-devices)
- [Restore](#restore)
- [Regular Rebase](#regular-rebase)
- [Rebase with commit](#rebase-with-commit)
- [Rebase into a new image](#rebase-into-a-new-image)
- [Rebase with adding snapshots](#rebase-with-adding-snapshots)
- [Misc commands and options](#misc-commands-and-options)
Expand Down Expand Up @@ -240,6 +241,21 @@ time is possible:
qmprestore rebase --dir /tmp/backup/ide0-hd0 --until INC-1480542701
```

## Rebase with commit

If you want to rebase and actually commit back the changes to the images use:

```
qmprestore commit --dir /tmp/backup/ide0-hd0
```

After rebase you will find the merged image file with all changes committed
in the target folder.

`Note:` It makes sense to copy the existing backup directory to a temporary
folder before rebasing, if you do not want to alter your existing backups.


## Rebase into a new image

It is also possible to restore and rebase the backup files into a new target
Expand Down
2 changes: 1 addition & 1 deletion qmprestore
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ if action == "snapshotrebase":
sys.exit(1)

if action == "commit":
log.info("Rebasing and committing images in source folder: [%s]", argv.dir)
log.info("Rebasing and committing images in source folder: [%s]", argv.dir)
if image.commit(argv):
log.info("Image file rebase and commit successful.")
sys.exit(0)
Expand Down

0 comments on commit 2740cd3

Please sign in to comment.