Please add support for par2 creating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
OK, this add support for creating par2 recovery files for every file that gets uploaded to the backend.
- can be enabled by passing --par2. If the backend already contains par2 files there is no need to pass the --par2 option.
- the par2 files are created just before the upload of the file so this will not break the asynchronous mode.
- all par2 files are preserved in the local cache and uploaded to the backend.
todo:
- add comments and logging
- add support for customizing the pa2 options currently 20% redundancy is used which might be an overkill or too little for someone
- don't use os.system and add error handling.
- add support for recovery.
Code review will be greatly appreciated. There are some very ugly hacks with temp files
Related branches
- duplicity-team: Pending requested
-
Diff: 302 lines (+236/-0)5 files modifiedbin/duplicity.1 (+35/-0)
duplicity/backend.py (+1/-0)
duplicity/backends/~par2wrapperbackend.py (+194/-0)
duplicity/commandline.py (+3/-0)
duplicity/globals.py (+3/-0)
Changed in duplicity: | |
assignee: | duplicity-team (duplicity-team) → nobody |
importance: | Medium → Undecided |
milestone: | 0.7.00 → none |
status: | In Progress → New |
summary: |
- [PATCH] par2 creating support + par2 creating support |
Changed in duplicity: | |
status: | New → Confirmed |
summary: |
- par2 creating support + Please add support for par2 creating |
Changed in duplicity: | |
importance: | Undecided → Wishlist |
Changed in duplicity: | |
status: | Confirmed → Fix Committed |
milestone: | none → 0.6.24 |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Very nice idea! I'm testing duplicity 0.6.05 with your patch right now on my server, with daily backups.
I'm not yet comfortable enough with python (or duplicity's code) to make a code review, but that still might happen eventually :)