← Back to team overview

duplicity-team team mailing list archive

Re: [Question #103229]: Wouldn't it make sense to output a full signature in `rdiffdir --write-sig-to <sig> delta'?

 

Question #103229 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/103229

Laszlo Ersek posted a new comment:
The important calls in "rdiffdir" are diffdir.DirDelta() in
write_delta(), and diffdir.DirDelta_WriteSig() in write_delta_and_sig().

The second parameter of both of these functions in the duplicity.diffdir
module is either an fp returned by os.open(), or a list of such, sorted
in logical increment order.

Thus in the rdiffdir "delta" command line, "signature_file" could be
replaced by an ordered set of signature files. rdiffdir's main() should
grab the corresponding slice of the "file_args" list, map it with
os.open() -- or even with get_fileobj() -- into a list of fp's, and pass
that list to write_delta() / write_delta_and_sig() as second argument. I
guess if I actually programmed in Python this wouldn't be hard to
implement.

The freshly written signature would be incremental again, but the delta
& the new sigs would be built against the entire prior signature chain.

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.