FeatReq: alternate filenames to support S3/Glacier
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Feature request: be nice when using S3/Glacier to only transition the difftars to Glacier, while leaving the manifests and sigtars alone. Given the current duplicity naming scheme, and the limitations of the Glacier transition rules, this is currently impossible. S3 transition rules can distinguish which files to transition to Glacier by matching against a file prefix -- a direct string match, not a regexp match. So basically you need to be able to tell if it's a manifest, sigtar, or difftar by looking at the part before the timestamp. At present sigtars can be identified this way, but manifests and difftars and not distinguishable by a prefix match.
This feature would also permit a simple workaround for bug 1170113.
Some discussion of this feature request is in this mailing list thread:
http://
I also note that recent discussion of bug 1039511 has touched on this same feature request.
I am attaching a patch to 0.6.21, which patch is completely untested, which implements a version of this scheme. This patch introduces a switch "--alternate-
Changed in duplicity: | |
milestone: | none → 0.6.24 |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
One comment - the difftar files do not really have a prefix, and those are the ones most in need of a prefix. When setting up retention rules on s3 you set them on the files you want to move to glacier, not the ones you want to leave in s3.
I'd suggest adding a prefix of some kind to the difftar files.
Right now the tardiff files can be identified because they use a period instead of a hyphen after the common prefix (eg duplicity-full).
The current conventions are: inc-manifest. date inc-signatures. date
duplicity-
duplicity-
duplicity-inc.date
The resulting prefix would be "duplicity-inc." - only the period separates this from the manifests which might be kept online.
It would make more sense to name them: inc-manifest. date inc-signatures. date inc-difftar. date
duplicity-
duplicity-
duplicity-
(or some other prefix)
Otherwise your patch works fine for me.