Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply delta patch when merging #56

Open
AndrolGenhald opened this issue Nov 9, 2023 · 1 comment
Open

Apply delta patch when merging #56

AndrolGenhald opened this issue Nov 9, 2023 · 1 comment
Assignees
Labels
new feature new feature request

Comments

@AndrolGenhald
Copy link

I'm trying to merge a full backup with a later differential backup to create a new full backup with the same data as the differential, based on this mail thread here.
The issue I'm running into is that I have backups with delta signatures, and with the overwriting policy {!(~I)}[Rr] {~S}[O*] P* ; {~s}[*o] *p what appears to happen is that for files that had a delta change recorded, it takes the data that was saved for the delta and stores that in the merged archive. Then when I try to restore from it, it doesn't work for those files because it only has the delta patch, and not the full contents of the file.
What I would like to happen is for the merge operation to take the data from the original archive, apply the delta patch, and store that result in the merged archive, but as far as I can tell that would require a new overwriting policy option (and I'm quite sure that also wouldn't work with the -ak flag since it would require decompressing to apply the patch).

@Edrusb
Copy link
Owner

Edrusb commented Nov 15, 2023

The email thread you refer to is dated from 2013 (ten years ago) and this trick/hack has been integrated in dar as part of /etc/darrc under the user target "full-from-diff". See FAQ for details.
Binary delta is only available since release 2.6.0 (December 2018) and this this discussion and FAQ does not apply here.

The merging operation only does what you mentioned: merging two backups with an overwriting policy to resolve conflicts and decide which version to retain when a file is present in both backups. Thus, this is not an overwriting policy nor a merging operation that can perform what you plan to do when binary delta are concerned, but a brand-new feature...

@Edrusb Edrusb self-assigned this Nov 15, 2023
@Edrusb Edrusb added the new feature new feature request label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature new feature request
Projects
None yet
Development

No branches or pull requests

2 participants