duplicity 3.2.0.2__tar.gz → 3.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. {duplicity-3.2.0.2 → duplicity-3.2.1}/CHANGELOG.md +106 -6
  2. {duplicity-3.2.0.2/duplicity.egg-info → duplicity-3.2.1}/PKG-INFO +1 -3
  3. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-INSTALL.md +1 -2
  4. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-TESTING.md +2 -1
  5. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/__init__.py +2 -2
  6. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backend_pool.py +2 -1
  7. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/_cf_cloudfiles.py +6 -0
  8. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/_cf_pyrax.py +6 -0
  9. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/b2backend.py +36 -11
  10. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/boxbackend.py +38 -3
  11. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/hubicbackend.py +5 -0
  12. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/imapbackend.py +1 -1
  13. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/onedrivebackend.py +39 -16
  14. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/par2backend.py +21 -4
  15. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/rsyncbackend.py +25 -1
  16. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/ssh_pexpect_backend.py +2 -2
  17. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/webdavbackend.py +20 -0
  18. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/cli_data.py +215 -36
  19. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/cli_main.py +93 -14
  20. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/cli_util.py +116 -1
  21. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/config.py +2 -1
  22. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/dup_collections.py +10 -8
  23. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/dup_main.py +68 -61
  24. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/file_naming.py +15 -1
  25. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/gpg.py +217 -256
  26. duplicity-3.2.1/duplicity/gpginterface.py +702 -0
  27. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/selection.py +43 -119
  28. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/tempdir.py +6 -5
  29. {duplicity-3.2.0.2 → duplicity-3.2.1/duplicity.egg-info}/PKG-INFO +1 -3
  30. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity.egg-info/SOURCES.txt +1 -0
  31. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity.egg-info/requires.txt +0 -2
  32. {duplicity-3.2.0.2 → duplicity-3.2.1}/man/duplicity.1 +25 -1
  33. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/af_ZA/af_ZA.po +394 -382
  34. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/af_ZA.po +394 -382
  35. {duplicity-3.2.0.2/po → duplicity-3.2.1/po/ar_SA}/ar_SA.po +400 -393
  36. {duplicity-3.2.0.2/po/ar_SA → duplicity-3.2.1/po}/ar_SA.po +400 -393
  37. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ca_ES/ca_ES.po +394 -382
  38. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ca_ES.po +394 -382
  39. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/cs_CZ/cs_CZ.po +400 -393
  40. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/cs_CZ.po +400 -393
  41. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/da_DK/da_DK.po +400 -393
  42. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/da_DK.po +400 -393
  43. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/de_AT/de_AT.po +400 -393
  44. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/de_AT.po +400 -393
  45. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/de_DE/de_DE.po +400 -393
  46. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/de_DE.po +400 -393
  47. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/duplicity.pot +399 -386
  48. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/el_GR/el_GR.po +400 -388
  49. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/el_GR.po +400 -388
  50. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_AU/en_AU.po +394 -382
  51. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_AU.po +394 -382
  52. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_GB/en_GB.po +394 -382
  53. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_GB.po +394 -382
  54. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_PR/en_PR.po +394 -382
  55. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_PR.po +394 -382
  56. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_US/en_US.po +394 -382
  57. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/en_US.po +394 -382
  58. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_EM/es_EM.po +400 -393
  59. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_EM.po +400 -393
  60. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_ES/es_ES.po +400 -393
  61. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_ES.po +400 -393
  62. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_MX/es_MX.po +400 -393
  63. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_MX.po +400 -393
  64. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_PR/es_PR.po +400 -393
  65. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_PR.po +400 -393
  66. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_US/es_US.po +400 -393
  67. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/es_US.po +400 -393
  68. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/fi_FI/fi_FI.po +400 -393
  69. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/fi_FI.po +400 -393
  70. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/fr_FR/fr_FR.po +400 -390
  71. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/fr_FR.po +400 -390
  72. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/he_IL/he_IL.po +395 -385
  73. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/he_IL.po +395 -385
  74. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/hu_HU/hu_HU.po +395 -383
  75. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/hu_HU.po +395 -383
  76. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/it_IT/it_IT.po +400 -393
  77. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/it_IT.po +400 -393
  78. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ja_JP/ja_JP.po +400 -388
  79. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ja_JP.po +400 -388
  80. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ka_GE/ka_GE.po +394 -382
  81. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ka_GE.po +394 -382
  82. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ko_KR/ko_KR.po +394 -382
  83. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ko_KR.po +394 -382
  84. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/nl_BE/nl_BE.po +400 -393
  85. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/nl_BE.po +400 -393
  86. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/nl_NL/nl_NL.po +400 -393
  87. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/nl_NL.po +400 -393
  88. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/nl_SR/nl_SR.po +400 -393
  89. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/nl_SR.po +400 -393
  90. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/no_NO/no_NO.po +400 -393
  91. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/no_NO.po +400 -393
  92. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/pl_PL/pl_PL.po +400 -393
  93. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/pl_PL.po +400 -393
  94. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/pt_BR/pt_BR.po +400 -393
  95. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/pt_BR.po +400 -393
  96. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/pt_PT/pt_PT.po +400 -393
  97. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/pt_PT.po +400 -393
  98. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ro_RO/ro_RO.po +400 -393
  99. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ro_RO.po +400 -393
  100. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_BY/ru_BY.po +400 -393
  101. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_BY.po +400 -393
  102. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_MD/ru_MD.po +400 -393
  103. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_MD.po +400 -393
  104. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_RU/ru_RU.po +400 -393
  105. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_RU.po +400 -393
  106. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/sr_SP/sr_SP.po +394 -382
  107. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/sr_SP.po +394 -382
  108. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/sv_SE/sv_SE.po +400 -393
  109. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/sv_SE.po +400 -393
  110. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/tr_TR/tr_TR.po +394 -382
  111. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/tr_TR.po +394 -382
  112. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/uk_UA/uk_UA.po +395 -383
  113. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/uk_UA.po +395 -383
  114. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/vi_VN/vi_VN.po +394 -382
  115. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/vi_VN.po +394 -382
  116. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_CN/zh_CN.po +400 -393
  117. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_CN.po +400 -393
  118. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_HK/zh_HK.po +394 -382
  119. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_HK.po +394 -382
  120. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_MO/zh_MO.po +394 -382
  121. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_MO.po +394 -382
  122. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_SG/zh_SG.po +400 -393
  123. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_SG.po +400 -393
  124. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_TW/zh_TW.po +394 -382
  125. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/zh_TW.po +394 -382
  126. {duplicity-3.2.0.2 → duplicity-3.2.1}/pyproject.toml +16 -10
  127. {duplicity-3.2.0.2 → duplicity-3.2.1}/requirements.txt +1 -3
  128. {duplicity-3.2.0.2 → duplicity-3.2.1}/setup.py +6 -1
  129. {duplicity-3.2.0.2 → duplicity-3.2.1}/AUTHORS.md +0 -0
  130. {duplicity-3.2.0.2 → duplicity-3.2.1}/COPYING +0 -0
  131. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-ARCH.md +0 -0
  132. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-LOG.md +0 -0
  133. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-RELEASE.md +0 -0
  134. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-REPO.md +0 -0
  135. {duplicity-3.2.0.2 → duplicity-3.2.1}/README-SNAP.md +0 -0
  136. {duplicity-3.2.0.2 → duplicity-3.2.1}/README.md +0 -0
  137. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/__main__.py +0 -0
  138. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/_librsync_ctypes.py +0 -0
  139. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/_librsyncmodule.c +0 -0
  140. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/argparse311.py +0 -0
  141. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backend.py +0 -0
  142. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/__init__.py +0 -0
  143. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/_testbackend.py +0 -0
  144. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/adbackend.py +0 -0
  145. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/azurebackend.py +0 -0
  146. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/cfbackend.py +0 -0
  147. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/dpbxbackend.py +0 -0
  148. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/gdocsbackend.py +0 -0
  149. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/gdrivebackend.py +0 -0
  150. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/giobackend.py +0 -0
  151. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/hsibackend.py +0 -0
  152. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/idrivedbackend.py +0 -0
  153. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/jottacloudbackend.py +0 -0
  154. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/lftpbackend.py +0 -0
  155. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/localbackend.py +0 -0
  156. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/mediafirebackend.py +0 -0
  157. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/megabackend.py +0 -0
  158. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/megav2backend.py +0 -0
  159. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/megav3backend.py +0 -0
  160. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/multibackend.py +0 -0
  161. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/ncftpbackend.py +0 -0
  162. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/pcabackend.py +0 -0
  163. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/pydrivebackend.py +0 -0
  164. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/pyrax_identity/__init__.py +0 -0
  165. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/pyrax_identity/hubic.py +0 -0
  166. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/rclonebackend.py +0 -0
  167. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/s3_boto3_backend.py +0 -0
  168. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/slatebackend.py +0 -0
  169. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/ssh_paramiko_backend.py +0 -0
  170. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/swiftbackend.py +0 -0
  171. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/sxbackend.py +0 -0
  172. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/tahoebackend.py +0 -0
  173. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/backends/xorrisobackend.py +0 -0
  174. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/cached_ops.py +0 -0
  175. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/diffdir.py +0 -0
  176. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/dup_tarfile.py +0 -0
  177. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/dup_temp.py +0 -0
  178. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/dup_time.py +0 -0
  179. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/errors.py +0 -0
  180. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/globmatch.py +0 -0
  181. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/lazy.py +0 -0
  182. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/librsync.py +0 -0
  183. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/log.py +0 -0
  184. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/manifest.py +0 -0
  185. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/patchdir.py +0 -0
  186. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/path.py +0 -0
  187. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/progress.py +0 -0
  188. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/robust.py +0 -0
  189. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/statistics.py +0 -0
  190. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity/util.py +0 -0
  191. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity.egg-info/dependency_links.txt +0 -0
  192. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity.egg-info/entry_points.txt +0 -0
  193. {duplicity-3.2.0.2 → duplicity-3.2.1}/duplicity.egg-info/top_level.txt +0 -0
  194. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_UA/ru_UA.po +0 -0
  195. {duplicity-3.2.0.2 → duplicity-3.2.1}/po/ru_UA.po +0 -0
  196. {duplicity-3.2.0.2 → duplicity-3.2.1}/setup.cfg +0 -0
@@ -1,9 +1,74 @@
1
1
 
2
- (Unreleased) / 2026-08-22
2
+ (Unreleased) / 2026-09-28
3
3
  =========================
4
4
 
5
5
 
6
6
 
7
+ rel.3.2.1 / 2026-09-28
8
+ ======================
9
+
10
+ * [`d7da150b`](https://gitlab.com/duplicity/duplicity/-/commit/d7da150b):new: Create subpath in rsyncd.
11
+ * [`77c5107e`](https://gitlab.com/duplicity/duplicity/-/commit/77c5107e):new: Add get_version() to librsync to retrieve underlying library version
12
+ * [`b839f2c8`](https://gitlab.com/duplicity/duplicity/-/commit/b839f2c8):new: Add pure Python librsync implementation using ctypes as fallback
13
+ * [`ba7957c3`](https://gitlab.com/duplicity/duplicity/-/commit/ba7957c3):new: Add coverage configuration and Makefile targets for testing.
14
+ * [`846e90ae`](https://gitlab.com/duplicity/duplicity/-/commit/846e90ae):chg: Adapt `makechangelog` for enhanced usability and stricter repo cleanliness checks
15
+ * [`35191e13`](https://gitlab.com/duplicity/duplicity/-/commit/35191e13):chg: Remove unused pytest options and manual testing directory from `pyproject.toml`
16
+ * [`eaa264be`](https://gitlab.com/duplicity/duplicity/-/commit/eaa264be):chg: Improve error handling for Box, OneDrive, and WebDAV backends; add unit tests for comprehensive validation
17
+ * [`e181a9e9`](https://gitlab.com/duplicity/duplicity/-/commit/e181a9e9):chg: Improve error handling and signature file filtering logic; add unit tests for B2 and PAR2 backends
18
+ * [`58a54680`](https://gitlab.com/duplicity/duplicity/-/commit/58a54680):chg: Add regex cache invalidation for file prefix changes; update tests
19
+ * [`fcd6920a`](https://gitlab.com/duplicity/duplicity/-/commit/fcd6920a):chg: Add deprecation warnings for CloudFiles, Pyrax, and Hubic backends
20
+ * [`1842e4de`](https://gitlab.com/duplicity/duplicity/-/commit/1842e4de):chg: Remove `python3-gnupg` and restore `gpginterface` module and unit tests.
21
+ * [`aae16c61`](https://gitlab.com/duplicity/duplicity/-/commit/aae16c61):chg: Remove `python3-gnupg` and restore `gpginterface` module and unit tests.
22
+ * [`a201453e`](https://gitlab.com/duplicity/duplicity/-/commit/a201453e):chg: Plan to remove obsolete Pyrax, CloudFiles, and Hubic backends; standardize on python-swiftclient
23
+ * [`abdf9a0e`](https://gitlab.com/duplicity/duplicity/-/commit/abdf9a0e):chg: Remove unused gnupg import from gpg.py for cleanup.
24
+ * [`bd649791`](https://gitlab.com/duplicity/duplicity/-/commit/bd649791):chg: Split wildcard and multiline imports into individual lines for improved clarity and compliance with coding standards
25
+ * [`993cc651`](https://gitlab.com/duplicity/duplicity/-/commit/993cc651):chg: Decouple selection parsing from core engine and refactor tests
26
+ * [`1af57ea4`](https://gitlab.com/duplicity/duplicity/-/commit/1af57ea4):chg: Add support and tests for new CLI options
27
+ * [`df643666`](https://gitlab.com/duplicity/duplicity/-/commit/df643666):chg: Update Python3 version and dependencies in `debian/control`
28
+ * [`855c6f1c`](https://gitlab.com/duplicity/duplicity/-/commit/855c6f1c):chg: Remove outdated comment for `python3-gnupg` in `debian/control`
29
+ * [`22fae925`](https://gitlab.com/duplicity/duplicity/-/commit/22fae925):chg: Sync README files in `setup.py` and clean up verbosity flags
30
+ * [`978355b4`](https://gitlab.com/duplicity/duplicity/-/commit/978355b4):chg: Enable verbose mode in debian/rules
31
+ * [`626cdccb`](https://gitlab.com/duplicity/duplicity/-/commit/626cdccb):chg: Remove redundant `apt` commands in `debian/rules`
32
+ * [`ba71d094`](https://gitlab.com/duplicity/duplicity/-/commit/ba71d094):chg: Update setuptools to >=61.0.0 in dev dependencies and `debian/rules`
33
+ * [`2b55864a`](https://gitlab.com/duplicity/duplicity/-/commit/2b55864a):chg: Simplify `gnupg` import logic in `gpg.py`
34
+ * [`80abbd02`](https://gitlab.com/duplicity/duplicity/-/commit/80abbd02):chg: Adjust dependencies in `requirements.txt` and `debian/control`
35
+ * [`df52d45b`](https://gitlab.com/duplicity/duplicity/-/commit/df52d45b):chg: Add `python3-gnupg` as a build dependency in `debian/control`
36
+ * [`057c7d0a`](https://gitlab.com/duplicity/duplicity/-/commit/057c7d0a):chg: Update doc cleanup pattern in `debian/rules`
37
+ * [`4eaee861`](https://gitlab.com/duplicity/duplicity/-/commit/4eaee861):chg: Update doc cleanup to remove `duplicity-*` files in `debian/rules`
38
+ * [`7cd8ddb6`](https://gitlab.com/duplicity/duplicity/-/commit/7cd8ddb6):chg: Add `get_data_files` for dynamic data file handling in `setup.py`
39
+ * [`e9bf8843`](https://gitlab.com/duplicity/duplicity/-/commit/e9bf8843):chg: Simplify doc handling by removing outdated duplicity docs
40
+ * [`4bc93712`](https://gitlab.com/duplicity/duplicity/-/commit/4bc93712):chg: Update dependencies, streamline configs, and refine CI
41
+ * [`ca78d6c5`](https://gitlab.com/duplicity/duplicity/-/commit/ca78d6c5):chg: Update release-prep script to use `check_tags`
42
+ * [`60ae51f3`](https://gitlab.com/duplicity/duplicity/-/commit/60ae51f3):chg: Update release-prep script to fix tag removal and file refs
43
+ * [`45495e09`](https://gitlab.com/duplicity/duplicity/-/commit/45495e09):chg: Update pipeline triggers for push, web, and merge request events
44
+ * [`f8fc71e3`](https://gitlab.com/duplicity/duplicity/-/commit/f8fc71e3):chg: Improve process in `setup.py` and release prep script
45
+ * [`f36c9922`](https://gitlab.com/duplicity/duplicity/-/commit/f36c9922):chg: Refactor versioning and metadata handling
46
+ * [`84afa6f2`](https://gitlab.com/duplicity/duplicity/-/commit/84afa6f2):chg: Refactor string concatenations to f-strings across codebase
47
+ * [`480cbc23`](https://gitlab.com/duplicity/duplicity/-/commit/480cbc23):chg: Clean up and refactor `pyproject.toml` and `Makefile`
48
+ * [`42d4838d`](https://gitlab.com/duplicity/duplicity/-/commit/42d4838d):chg: Rewrite `makechangelog` script in Python
49
+ * [`1dee9e31`](https://gitlab.com/duplicity/duplicity/-/commit/1dee9e31):chg: b2backend prefer b2sdk.v3
50
+ * [`4f4e052e`](https://gitlab.com/duplicity/duplicity/-/commit/4f4e052e):chg: Cleanup some minor issues
51
+ * [`1e0a97dc`](https://gitlab.com/duplicity/duplicity/-/commit/1e0a97dc):chg: Format with Black/PEP8 and ensure file flush before rename
52
+ * [`7514a7e2`](https://gitlab.com/duplicity/duplicity/-/commit/7514a7e2):fix: Correct string formatting in help output and improve test stability
53
+ * [`c179caf1`](https://gitlab.com/duplicity/duplicity/-/commit/c179caf1):fix: Fix GPG sleep processes on verify, modernize tests, and update guidelines
54
+ * [`90f9137e`](https://gitlab.com/duplicity/duplicity/-/commit/90f9137e):fix: Fix subpath creation for rsync #943
55
+ * [`ed58fae5`](https://gitlab.com/duplicity/duplicity/-/commit/ed58fae5):fix: Restore Python versions, dependencies, and revert migration to 'python-gnupg'.
56
+ * [`22da1a0d`](https://gitlab.com/duplicity/duplicity/-/commit/22da1a0d):fix: Resolve PEP8 style issues and whitespace in backend and main modules
57
+ * [`06858c9a`](https://gitlab.com/duplicity/duplicity/-/commit/06858c9a):fix: Replace `os.system` calls with safer Python alternatives.
58
+ * [`da745307`](https://gitlab.com/duplicity/duplicity/-/commit/da745307):fix: Add --ignore-installed flag for pip in Dockerfiles
59
+ * [`883cca1e`](https://gitlab.com/duplicity/duplicity/-/commit/883cca1e):fix: restore issue: AssertionError: (b'keys', [...]) not empty
60
+ * [`aa0b23e7`](https://gitlab.com/duplicity/duplicity/-/commit/aa0b23e7):fix: Replace `log.FatalError` with `raise errors.FatalError`.
61
+ * [`c3a45713`](https://gitlab.com/duplicity/duplicity/-/commit/c3a45713):fix: Add support for "sync" action and handle passphrase checks.
62
+ * [`db99858e`](https://gitlab.com/duplicity/duplicity/-/commit/db99858e):fix: Enhance error handling and debug logging in Python modules
63
+ * [`dbb899ad`](https://gitlab.com/duplicity/duplicity/-/commit/dbb899ad):fix: Use 'python-gnupg' instead of our 'gpginterface.py'.
64
+ * [`4d6e9f8c`](https://gitlab.com/duplicity/duplicity/-/commit/4d6e9f8c):fix: PCABackend GET URL needs prefix if one is defined
65
+ * [`d7cd05d8`](https://gitlab.com/duplicity/duplicity/-/commit/d7cd05d8):fix: Could not release lockfile
66
+ * [`fcbe3a7a`](https://gitlab.com/duplicity/duplicity/-/commit/fcbe3a7a):fix: Enforce --force requirement for destructive operations
67
+ * [`c6c8b26a`](https://gitlab.com/duplicity/duplicity/-/commit/c6c8b26a):fix: Enhance BackupSet.delete signature cleanup and fix lock release
68
+ * [`3f0ab55b`](https://gitlab.com/duplicity/duplicity/-/commit/3f0ab55b):fix: Prevent premature deletion of full backups during incremental starts
69
+ * [`9819e4d4`](https://gitlab.com/duplicity/duplicity/-/commit/9819e4d4):fix: Add get_last_continuous_volume for reliable backup resumption
70
+ * [`5d737d07`](https://gitlab.com/duplicity/duplicity/-/commit/5d737d07):fix: Postpone metadata promotion to prevent orphaned cache files
71
+
7
72
  rel.3.2.0.2 / 2026-08-22
8
73
  ========================
9
74
 
@@ -47,13 +112,28 @@ rel.3.2.0 / 2026-08-10
47
112
  * [`c823ed36`](https://gitlab.com/duplicity/duplicity/-/commit/c823ed36):fix: Could not release lockfile
48
113
  * [`3d9eab94`](https://gitlab.com/duplicity/duplicity/-/commit/3d9eab94):fix: Comprehensive fix for backup, restart, and cleanup logic.
49
114
 
115
+ rel.3.2.1.dev3 / 2026-09-23
116
+ ===========================
117
+
118
+ * [`d7da150b`](https://gitlab.com/duplicity/duplicity/-/commit/d7da150b):new: Create subpath in rsyncd.
119
+ * [`e181a9e9`](https://gitlab.com/duplicity/duplicity/-/commit/e181a9e9):chg: Improve error handling and signature file filtering logic; add unit tests for B2 and PAR2 backends
120
+ * [`58a54680`](https://gitlab.com/duplicity/duplicity/-/commit/58a54680):chg: Add regex cache invalidation for file prefix changes; update tests
121
+ * [`fcd6920a`](https://gitlab.com/duplicity/duplicity/-/commit/fcd6920a):chg: Add deprecation warnings for CloudFiles, Pyrax, and Hubic backends
122
+ * [`1842e4de`](https://gitlab.com/duplicity/duplicity/-/commit/1842e4de):chg: Remove `python3-gnupg` and restore `gpginterface` module and unit tests.
123
+ * [`a201453e`](https://gitlab.com/duplicity/duplicity/-/commit/a201453e):chg: Plan to remove obsolete Pyrax, CloudFiles, and Hubic backends; standardize on python-swiftclient
124
+ * [`abdf9a0e`](https://gitlab.com/duplicity/duplicity/-/commit/abdf9a0e):chg: Remove unused gnupg import from gpg.py for cleanup.
125
+ * [`bd649791`](https://gitlab.com/duplicity/duplicity/-/commit/bd649791):chg: Split wildcard and multiline imports into individual lines for improved clarity and compliance with coding standards
126
+ * [`993cc651`](https://gitlab.com/duplicity/duplicity/-/commit/993cc651):chg: Decouple selection parsing from core engine and refactor tests
127
+ * [`1af57ea4`](https://gitlab.com/duplicity/duplicity/-/commit/1af57ea4):chg: Add support and tests for new CLI options
128
+ * [`df643666`](https://gitlab.com/duplicity/duplicity/-/commit/df643666):chg: Update Python3 version and dependencies in `debian/control`
129
+ * [`7514a7e2`](https://gitlab.com/duplicity/duplicity/-/commit/7514a7e2):fix: Correct string formatting in help output and improve test stability
130
+ * [`c179caf1`](https://gitlab.com/duplicity/duplicity/-/commit/c179caf1):fix: Fix GPG sleep processes on verify, modernize tests, and update guidelines
131
+ * [`90f9137e`](https://gitlab.com/duplicity/duplicity/-/commit/90f9137e):fix: Fix subpath creation for rsync #943
132
+ * [`ed58fae5`](https://gitlab.com/duplicity/duplicity/-/commit/ed58fae5):fix: Restore Python versions, dependencies, and revert migration to 'python-gnupg'.
133
+
50
134
  rel.3.2.1.dev2 / 2026-08-20
51
135
  ===========================
52
136
 
53
- * [`77c5107e`](https://gitlab.com/duplicity/duplicity/-/commit/77c5107e):new: Add get_version() to librsync to retrieve underlying library version
54
- * [`b839f2c8`](https://gitlab.com/duplicity/duplicity/-/commit/b839f2c8):new: Add pure Python librsync implementation using ctypes as fallback
55
- * [`ba7957c3`](https://gitlab.com/duplicity/duplicity/-/commit/ba7957c3):new: Add coverage configuration and Makefile targets for testing.
56
- * [`6feeafb1`](https://gitlab.com/duplicity/duplicity/-/commit/6feeafb1):new: Add PyCharm devcontainer configuration and base Dockerfile.
57
137
  * [`855c6f1c`](https://gitlab.com/duplicity/duplicity/-/commit/855c6f1c):chg: Remove outdated comment for `python3-gnupg` in `debian/control`
58
138
  * [`22fae925`](https://gitlab.com/duplicity/duplicity/-/commit/22fae925):chg: Sync README files in `setup.py` and clean up verbosity flags
59
139
  * [`978355b4`](https://gitlab.com/duplicity/duplicity/-/commit/978355b4):chg: Enable verbose mode in debian/rules
@@ -61,11 +141,24 @@ rel.3.2.1.dev2 / 2026-08-20
61
141
  * [`ba71d094`](https://gitlab.com/duplicity/duplicity/-/commit/ba71d094):chg: Update setuptools to >=61.0.0 in dev dependencies and `debian/rules`
62
142
  * [`2b55864a`](https://gitlab.com/duplicity/duplicity/-/commit/2b55864a):chg: Simplify `gnupg` import logic in `gpg.py`
63
143
  * [`80abbd02`](https://gitlab.com/duplicity/duplicity/-/commit/80abbd02):chg: Adjust dependencies in `requirements.txt` and `debian/control`
144
+
145
+ rel.3.2.1.dev1 / 2026-08-15
146
+ ===========================
147
+
64
148
  * [`df52d45b`](https://gitlab.com/duplicity/duplicity/-/commit/df52d45b):chg: Add `python3-gnupg` as a build dependency in `debian/control`
65
149
  * [`057c7d0a`](https://gitlab.com/duplicity/duplicity/-/commit/057c7d0a):chg: Update doc cleanup pattern in `debian/rules`
66
150
  * [`4eaee861`](https://gitlab.com/duplicity/duplicity/-/commit/4eaee861):chg: Update doc cleanup to remove `duplicity-*` files in `debian/rules`
67
151
  * [`7cd8ddb6`](https://gitlab.com/duplicity/duplicity/-/commit/7cd8ddb6):chg: Add `get_data_files` for dynamic data file handling in `setup.py`
68
152
  * [`e9bf8843`](https://gitlab.com/duplicity/duplicity/-/commit/e9bf8843):chg: Simplify doc handling by removing outdated duplicity docs
153
+ * [`22da1a0d`](https://gitlab.com/duplicity/duplicity/-/commit/22da1a0d):fix: Resolve PEP8 style issues and whitespace in backend and main modules
154
+
155
+ rel.3.2.1.dev0 / 2026-08-11
156
+ ===========================
157
+
158
+ * [`77c5107e`](https://gitlab.com/duplicity/duplicity/-/commit/77c5107e):new: Add get_version() to librsync to retrieve underlying library version
159
+ * [`b839f2c8`](https://gitlab.com/duplicity/duplicity/-/commit/b839f2c8):new: Add pure Python librsync implementation using ctypes as fallback
160
+ * [`ba7957c3`](https://gitlab.com/duplicity/duplicity/-/commit/ba7957c3):new: Add coverage configuration and Makefile targets for testing.
161
+ * [`6feeafb1`](https://gitlab.com/duplicity/duplicity/-/commit/6feeafb1):new: Add PyCharm devcontainer configuration and base Dockerfile.
69
162
  * [`4bc93712`](https://gitlab.com/duplicity/duplicity/-/commit/4bc93712):chg: Update dependencies, streamline configs, and refine CI
70
163
  * [`ca78d6c5`](https://gitlab.com/duplicity/duplicity/-/commit/ca78d6c5):chg: Update release-prep script to use `check_tags`
71
164
  * [`60ae51f3`](https://gitlab.com/duplicity/duplicity/-/commit/60ae51f3):chg: Update release-prep script to fix tag removal and file refs
@@ -83,7 +176,6 @@ rel.3.2.1.dev2 / 2026-08-20
83
176
  * [`6f015221`](https://gitlab.com/duplicity/duplicity/-/commit/6f015221):chg: Update Snapcraft to core26 and Python 3.14
84
177
  * [`938764f7`](https://gitlab.com/duplicity/duplicity/-/commit/938764f7):chg: Add setuptools dependency to requirements.dev for Python 3.12+
85
178
  * [`b17da54e`](https://gitlab.com/duplicity/duplicity/-/commit/b17da54e):chg: Update dependencies in requirements.txt for compatibility.
86
- * [`22da1a0d`](https://gitlab.com/duplicity/duplicity/-/commit/22da1a0d):fix: Resolve PEP8 style issues and whitespace in backend and main modules
87
179
  * [`06858c9a`](https://gitlab.com/duplicity/duplicity/-/commit/06858c9a):fix: Replace `os.system` calls with safer Python alternatives.
88
180
  * [`da745307`](https://gitlab.com/duplicity/duplicity/-/commit/da745307):fix: Add --ignore-installed flag for pip in Dockerfiles
89
181
  * [`883cca1e`](https://gitlab.com/duplicity/duplicity/-/commit/883cca1e):fix: restore issue: AssertionError: (b'keys', [...]) not empty
@@ -99,6 +191,10 @@ rel.3.2.1.dev2 / 2026-08-20
99
191
  * [`9819e4d4`](https://gitlab.com/duplicity/duplicity/-/commit/9819e4d4):fix: Add get_last_continuous_volume for reliable backup resumption
100
192
  * [`5d737d07`](https://gitlab.com/duplicity/duplicity/-/commit/5d737d07):fix: Postpone metadata promotion to prevent orphaned cache files
101
193
 
194
+ rel.3.1.1.dev0 / 2026-06-16
195
+ ===========================
196
+
197
+
102
198
  rel.3.1.0 / 2026-06-16
103
199
  ======================
104
200
 
@@ -198,6 +294,10 @@ rel.3.0.6.1 / 2025-11-13
198
294
  ========================
199
295
 
200
296
  * [`a08b2409`](https://gitlab.com/duplicity/duplicity/-/commit/a08b2409):chg: Revert "chg:pkg: Cleanup the build system."
297
+
298
+ rel.3.0.6.1.dev1 / 2025-11-07
299
+ =============================
300
+
201
301
  * [`c489e2a6`](https://gitlab.com/duplicity/duplicity/-/commit/c489e2a6):chg: Changes to .gitchangelog.rc
202
302
  * [`ae5a2873`](https://gitlab.com/duplicity/duplicity/-/commit/ae5a2873):fix: Regression in pexpect+sftp backend
203
303
  * [`222ae9d2`](https://gitlab.com/duplicity/duplicity/-/commit/222ae9d2):fix: unpin httplib2 but add pysocks needed for proxy support...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: duplicity
3
- Version: 3.2.0.2
3
+ Version: 3.2.1
4
4
  Summary: Encrypted backup using rsync algorithm
5
5
  Author-email: Kenneth Loafman <kenneth@loafman.com>
6
6
  Maintainer: Edgar Soldin, Thomas Laubrock
@@ -27,11 +27,9 @@ Requires-Python: <3.15,>=3.10
27
27
  Description-Content-Type: text/markdown
28
28
  License-File: COPYING
29
29
  License-File: AUTHORS.md
30
- Requires-Dist: cryptography==43.0.3
31
30
  Requires-Dist: fasteners>=0.19
32
31
  Requires-Dist: httplib2
33
32
  Requires-Dist: pysocks
34
- Requires-Dist: python-gnupg
35
33
  Requires-Dist: requests
36
34
  Requires-Dist: requests-oauthlib
37
35
  Requires-Dist: azure-storage-blob
@@ -22,6 +22,7 @@ sudo apt-get install -y \
22
22
  par2 \
23
23
  python3-dev \
24
24
  python3-lxml \
25
+ python3-cryptography \
25
26
  python3-pip \
26
27
  python3-venv \
27
28
  python3 \
@@ -85,7 +86,6 @@ sudo apt-get install -y \
85
86
  python3-fasteners \
86
87
  python3-httplib2 \
87
88
  python3-socks \
88
- python3-gnupg \
89
89
  python3-requests \
90
90
  python3-requests-oauthlib \
91
91
  python3-azure-storage-blob \
@@ -130,7 +130,6 @@ sudo apt-get install -y \
130
130
  python3-fasteners \
131
131
  python3-httplib2 \
132
132
  python3-socks \
133
- python3-gnupg \
134
133
  python3-requests \
135
134
  python3-requests-oauthlib \
136
135
  python3-azure-storage-blob \
@@ -16,7 +16,7 @@ environment. You can run tests on your branch as follows:
16
16
 
17
17
  Please test your branch using this method and ensure all tests pass before submitting a merge request.
18
18
 
19
- The decorator `@unittest.expectedFailure` can be used to commit a known-failing test case without breaking the test
19
+ The decorator `@pytest.mark.xfail` can be used to commit a known-failing test case without breaking the test
20
20
  suite, for example to exhibit the behaviour in a bug report before it has been fixed.
21
21
 
22
22
  ## Manual testing and running individual tests
@@ -34,3 +34,4 @@ See _Dependencies for testing_ to setup your environment.
34
34
  ## Dependencies for testing
35
35
  If you should prefer to execute the tests locally without using Docker, see [README-INSTALL.md](README-INSTALL.md) for
36
36
  comprehensive `apt` commands to set up your environment (see "APT Only Installation (Development)").
37
+ Duplicity rely on some python packages provided by the system/distribution, to avoid compilations issues if installed via pip.
@@ -29,7 +29,7 @@ orchestration.
29
29
 
30
30
  import gettext
31
31
 
32
- __version__: str = "3.2.0.2"
33
- __reldate__: str = "August 22, 2026"
32
+ __version__: str = "3.2.1"
33
+ __reldate__: str = "September 28, 2026"
34
34
 
35
35
  gettext.install("duplicity", names=["ngettext"])
@@ -332,7 +332,8 @@ class BackendPool:
332
332
 
333
333
  # code to run/test the pool independent, not relevant for duplicity
334
334
  if __name__ == "__main__":
335
- from duplicity import config, log
335
+ from duplicity import config
336
+ from duplicity import log
336
337
 
337
338
  log.setup()
338
339
  log.add_file("/tmp/tmp.log")
@@ -42,6 +42,12 @@ class CloudFilesBackend(duplicity.backend.Backend):
42
42
 
43
43
  :param ParsedUrl parsed_url: The parsed URL.
44
44
  """
45
+ log.Warn(
46
+ "DEPRECATION NOTICE: The cloudfiles backend will be removed with the next major version release. "
47
+ "It is based on the outdated pyrax library that is no longer being developed or supported. "
48
+ "As instant replacement consider using either `swift://` or `rclone://` backend."
49
+ )
50
+
45
51
  super().__init__(parsed_url)
46
52
  try:
47
53
  from cloudfiles import Connection
@@ -44,6 +44,12 @@ class PyraxBackend(duplicity.backend.Backend):
44
44
  """
45
45
  duplicity.backend.Backend.__init__(self, parsed_url)
46
46
 
47
+ log.Warn(
48
+ "DEPRECATION NOTICE: The cloudfiles pyrax backend will be removed with the next major version release. "
49
+ "It is based on the outdated python-cloudfiles library that is no longer being developed or supported. "
50
+ "As instant replacement consider using either `swift://` or `rclone://` backend."
51
+ )
52
+
47
53
  try:
48
54
  import pyrax
49
55
  except ImportError as e:
@@ -217,10 +217,24 @@ class B2Backend(duplicity.backend.Backend):
217
217
  log.Log(f"Delete: {full_filename}", log.INFO)
218
218
 
219
219
  if config.b2_hide_files:
220
- self.bucket.hide_file(full_filename)
220
+ try:
221
+ self.bucket.hide_file(full_filename)
222
+ except Exception as e:
223
+ code = self._error_code("delete", e)
224
+ if code == log.ErrorCode.backend_not_found:
225
+ log.Debug(f"B2Backend._delete: file {full_filename} not found, already deleted")
226
+ return
227
+ raise
221
228
  else:
222
- file_version_info = self.file_info(quote_plus(full_filename, "/"))
223
- self.bucket.delete_file_version(file_version_info.id_, file_version_info.file_name)
229
+ try:
230
+ file_version_info = self.file_info(quote_plus(full_filename, "/"))
231
+ self.bucket.delete_file_version(file_version_info.id_, file_version_info.file_name)
232
+ except Exception as e:
233
+ code = self._error_code("delete", e)
234
+ if code == log.ErrorCode.backend_not_found:
235
+ log.Debug(f"B2Backend._delete: file {full_filename} not found, already deleted")
236
+ return
237
+ raise
224
238
 
225
239
  def _query(self, filename):
226
240
  """
@@ -231,14 +245,25 @@ class B2Backend(duplicity.backend.Backend):
231
245
  :rtype: dict
232
246
  """
233
247
  log.Log(f"Query: {self.path}{os.fsdecode(filename)}", log.INFO)
234
- file_version_info = self.file_info(quote_plus(self.path + os.fsdecode(filename), "/"))
235
- return {
236
- "size": (
237
- int(file_version_info.size)
238
- if file_version_info is not None and file_version_info.size is not None
239
- else -1
240
- )
241
- }
248
+ try:
249
+ file_version_info = self.file_info(quote_plus(self.path + os.fsdecode(filename), "/"))
250
+ return {
251
+ "size": (
252
+ int(file_version_info.size)
253
+ if file_version_info is not None and file_version_info.size is not None
254
+ else -1
255
+ )
256
+ }
257
+ except Exception as e:
258
+ code = self._error_code("query", e)
259
+ if code == log.ErrorCode.backend_not_found:
260
+ return {"size": -1}
261
+ raise
262
+
263
+ def _error_code(self, operation, e):
264
+ if e.__class__.__name__ in ("FileNotPresent", "NonExistentBucket") or str(e) == "File not found":
265
+ return log.ErrorCode.backend_not_found
266
+ return log.ErrorCode.backend_error
242
267
 
243
268
  def file_info(self, filename):
244
269
  if self.v_num >= [1, 9, 0]:
@@ -25,6 +25,7 @@ Box backend.
25
25
  import os
26
26
 
27
27
  import duplicity.backend
28
+ from duplicity import log
28
29
  from duplicity.errors import BackendException
29
30
 
30
31
 
@@ -97,8 +98,14 @@ class BoxBackend(duplicity.backend.Backend):
97
98
  """
98
99
  Deletes file from the specified remote path
99
100
  """
100
-
101
- self.delete(remote_file=filename.decode())
101
+ try:
102
+ self.delete(remote_file=filename.decode())
103
+ except Exception as e:
104
+ code = self._error_code("delete", e)
105
+ if code == log.ErrorCode.backend_not_found:
106
+ log.Debug(f"BoxBackend._delete: file {filename.decode()} not found, already deleted")
107
+ return
108
+ raise
102
109
 
103
110
  def _query_list(self, filename_list):
104
111
  """
@@ -106,6 +113,17 @@ class BoxBackend(duplicity.backend.Backend):
106
113
  """
107
114
  return {filename: self._file_to_metadata_map.get(filename.decode(), {"size": -1}) for filename in filename_list}
108
115
 
116
+ def _error_code(self, operation, e):
117
+ if getattr(e, "code", None) == log.ErrorCode.backend_not_found:
118
+ return log.ErrorCode.backend_not_found
119
+ if getattr(e, "status", None) == 404:
120
+ return log.ErrorCode.backend_not_found
121
+ if getattr(e, "code", None) in (404, "not_found"):
122
+ return log.ErrorCode.backend_not_found
123
+ if "not found" in str(e).lower() or "does not exist" in str(e).lower():
124
+ return log.ErrorCode.backend_not_found
125
+ return log.ErrorCode.backend_error
126
+
109
127
  def get_id_from_path(self, remote_path, parent_id="0"):
110
128
  """
111
129
  Get the folder or file id from its path
@@ -142,6 +160,8 @@ class BoxBackend(duplicity.backend.Backend):
142
160
  return file["id"]
143
161
 
144
162
  file_id = self.get_id_from_path(remote_filename, parent_id=self._folder_id)
163
+ if file_id is None:
164
+ return None
145
165
  file = self._client.file(file_id).get()
146
166
  self._file_to_metadata_map[file.name] = {
147
167
  "id": file.id,
@@ -210,6 +230,8 @@ class BoxBackend(duplicity.backend.Backend):
210
230
  Download file in box folder
211
231
  """
212
232
  file_id = self.get_file_id_from_filename(remote_file)
233
+ if file_id is None:
234
+ raise BackendException(f"File {remote_file} not found.", code=log.ErrorCode.backend_not_found)
213
235
  with open(local_file, "wb") as fp:
214
236
  self._client.file(file_id).download_to(fp)
215
237
 
@@ -218,7 +240,20 @@ class BoxBackend(duplicity.backend.Backend):
218
240
  Delete file in box folder
219
241
  """
220
242
  file_id = self.get_file_id_from_filename(remote_file)
221
- self._client.file(file_id).delete()
243
+ if file_id is None:
244
+ self._file_to_metadata_map.pop(remote_file, None)
245
+ log.Debug(f"BoxBackend.delete: file {remote_file} not found, already deleted")
246
+ return
247
+ try:
248
+ self._client.file(file_id).delete()
249
+ except Exception as e:
250
+ code = self._error_code("delete", e)
251
+ if code == log.ErrorCode.backend_not_found:
252
+ log.Debug(f"BoxBackend.delete: file {remote_file} not found, already deleted")
253
+ return
254
+ raise
255
+ finally:
256
+ self._file_to_metadata_map.pop(remote_file, None)
222
257
 
223
258
 
224
259
  duplicity.backend.register_backend("box", BoxBackend)
@@ -46,6 +46,11 @@ class HubicBackend(PyraxBackend):
46
46
  """
47
47
  duplicity.backend.Backend.__init__(self, parsed_url)
48
48
 
49
+ log.Warn(
50
+ "DEPRECATION NOTICE: The hubic backend will be removed with the next major version release. "
51
+ "the hubiC service was shut down in 2022. the pyrax access library is outdated."
52
+ )
53
+
49
54
  try:
50
55
  import pyrax
51
56
  except ImportError as e:
@@ -47,7 +47,7 @@ import ssl
47
47
  socket.sslerror = ssl.SSLError
48
48
 
49
49
  from duplicity import config
50
- from duplicity.errors import * # pylint: disable=unused-wildcard-import
50
+ from duplicity.errors import BackendException
51
51
  import duplicity.backend
52
52
 
53
53
 
@@ -197,25 +197,48 @@ class OneDriveBackend(duplicity.backend.Backend):
197
197
 
198
198
  def _delete(self, remote_filename):
199
199
  remote_filename = remote_filename.decode("UTF-8")
200
- response = self.http_client.delete(
201
- self.API_URI + self.directory_onedrive_path + remote_filename,
202
- timeout=config.timeout,
203
- )
204
- if response.status_code == 404:
205
- raise BackendException(f'File "{remote_filename}" cannot be deleted: it does not exist')
206
- response.raise_for_status()
200
+ try:
201
+ response = self.http_client.delete(
202
+ self.API_URI + self.directory_onedrive_path + remote_filename,
203
+ timeout=config.timeout,
204
+ )
205
+ if response.status_code == 404:
206
+ log.Debug(f"OneDriveBackend._delete: file {remote_filename} not found, already deleted")
207
+ return
208
+ response.raise_for_status()
209
+ except Exception as e:
210
+ code = self._error_code("delete", e)
211
+ if code == log.ErrorCode.backend_not_found:
212
+ log.Debug(f"OneDriveBackend._delete: file {remote_filename} not found, already deleted")
213
+ return
214
+ raise
207
215
 
208
216
  def _query(self, remote_filename):
209
217
  remote_filename = remote_filename.decode("UTF-8")
210
- response = self.http_client.get(
211
- self.API_URI + self.directory_onedrive_path + remote_filename,
212
- timeout=config.timeout,
213
- )
214
- if response.status_code != 200:
215
- return {"size": -1}
216
- if "size" not in response.json():
217
- raise BackendException(f'Malformed JSON: expected "size" member in {response.json()}')
218
- return {"size": response.json()["size"]}
218
+ try:
219
+ response = self.http_client.get(
220
+ self.API_URI + self.directory_onedrive_path + remote_filename,
221
+ timeout=config.timeout,
222
+ )
223
+ if response.status_code == 404 or response.status_code != 200:
224
+ return {"size": -1}
225
+ if "size" not in response.json():
226
+ raise BackendException(f'Malformed JSON: expected "size" member in {response.json()}')
227
+ return {"size": response.json()["size"]}
228
+ except Exception as e:
229
+ code = self._error_code("query", e)
230
+ if code == log.ErrorCode.backend_not_found:
231
+ return {"size": -1}
232
+ raise
233
+
234
+ def _error_code(self, operation, e):
235
+ if getattr(e, "code", None) == log.ErrorCode.backend_not_found:
236
+ return log.ErrorCode.backend_not_found
237
+ if hasattr(e, "response") and getattr(e.response, "status_code", None) == 404:
238
+ return log.ErrorCode.backend_not_found
239
+ if "not found" in str(e).lower() or "does not exist" in str(e).lower():
240
+ return log.ErrorCode.backend_not_found
241
+ return log.ErrorCode.backend_error
219
242
 
220
243
  def _retry_cleanup(self):
221
244
  self.initialize_oauth2_session()
@@ -202,14 +202,24 @@ class Par2Backend(backend.Backend):
202
202
  """
203
203
  delete given filename and its .par2 files
204
204
  """
205
- self.wrapped_backend._delete(filename)
205
+ try:
206
+ self.wrapped_backend._delete(filename)
207
+ except Exception as e:
208
+ code = backend._get_code_from_exception(self.wrapped_backend, "delete", e)
209
+ if code != log.ErrorCode.backend_not_found:
210
+ raise
206
211
 
207
212
  remote_list = self.unfiltered_list()
208
213
 
209
214
  c = re.compile(f"{os.fsdecode(filename)}(?:\\.vol[\\d+]*)?\\.par2")
210
215
  for remote_filename in remote_list:
211
216
  if c.match(os.fsdecode(remote_filename)):
212
- self.wrapped_backend._delete(os.fsencode(remote_filename))
217
+ try:
218
+ self.wrapped_backend._delete(os.fsencode(remote_filename))
219
+ except Exception as e:
220
+ code = backend._get_code_from_exception(self.wrapped_backend, "delete", e)
221
+ if code != log.ErrorCode.backend_not_found:
222
+ raise
213
223
 
214
224
  def delete_list(self, filename_list):
215
225
  """
@@ -228,7 +238,12 @@ class Par2Backend(backend.Backend):
228
238
  return self.wrapped_backend._delete_list(filename_list)
229
239
  else:
230
240
  for filename in filename_list:
231
- self.wrapped_backend._delete(filename)
241
+ try:
242
+ self.wrapped_backend._delete(filename)
243
+ except Exception as e:
244
+ code = backend._get_code_from_exception(self.wrapped_backend, "delete", e)
245
+ if code != log.ErrorCode.backend_not_found:
246
+ raise
232
247
 
233
248
  def list(self):
234
249
  """
@@ -255,7 +270,9 @@ class Par2Backend(backend.Backend):
255
270
  self.wrapped_backend._retry_cleanup()
256
271
 
257
272
  def error_code(self, operation, e):
258
- return self.wrapped_backend._error_code(operation, e)
273
+ if hasattr(self.wrapped_backend, "_error_code"):
274
+ return self.wrapped_backend._error_code(operation, e)
275
+ return log.ErrorCode.backend_error
259
276
 
260
277
  def query(self, filename):
261
278
  return self.wrapped_backend._query(filename)
@@ -29,6 +29,7 @@ import tempfile
29
29
 
30
30
  import duplicity.backend
31
31
  from duplicity import config
32
+ from duplicity import log
32
33
  from duplicity import tempdir
33
34
  from duplicity import util
34
35
  from duplicity.errors import InvalidBackendURL
@@ -65,9 +66,14 @@ class RsyncBackend(duplicity.backend.Backend):
65
66
  if "RSYNC_RSH" in os.environ:
66
67
  del os.environ["RSYNC_RSH"]
67
68
  if self.over_rsyncd():
68
- # its a module path
69
+ # Split the daemon URL into its module root and the subpath used
70
+ # by duplicity, because rsyncd cannot create a missing subpath as
71
+ # the direct destination.
69
72
  path, port = self.get_rsync_path()
70
73
  self.url_string = f"{host}::{path.lstrip('/:')}"
74
+ module, separator, subpath = path.lstrip("/").partition("/")
75
+ self.rsyncd_module_url = f"{host}::{module}/"
76
+ self.rsyncd_subpath = subpath if separator else ""
71
77
  if port:
72
78
  port = f" --port={port}"
73
79
  else:
@@ -101,6 +107,10 @@ class RsyncBackend(duplicity.backend.Backend):
101
107
  rsyncOptions = config.rsync_options
102
108
  # build cmd
103
109
  self.cmd = f"rsync {portOption} {rsyncOptions}"
110
+ if self.over_rsyncd():
111
+ # Track whether the subpath has been created from the module root.
112
+ self.remote_path_created = False
113
+ self.ensure_remote_path()
104
114
 
105
115
  def over_rsyncd(self):
106
116
  url = self.parsed_url.url_string
@@ -116,6 +126,20 @@ class RsyncBackend(duplicity.backend.Backend):
116
126
  return m.group(2), m.group(1).lstrip(":")
117
127
  raise InvalidBackendURL(f"Could not determine rsync path: {self.munge_password(url)}")
118
128
 
129
+ def ensure_remote_path(self):
130
+ """Create the rsync daemon subpath before accessing stored files."""
131
+ if not self.over_rsyncd() or self.remote_path_created or not self.rsyncd_subpath:
132
+ return
133
+ with tempfile.TemporaryDirectory() as local_path:
134
+ local_subpath = os.path.join(local_path, self.rsyncd_subpath)
135
+ # Mirror the requested subpath locally so rsync creates each
136
+ # missing directory below the daemon module.
137
+ os.makedirs(local_subpath)
138
+ commandline = f"{self.cmd} --recursive {local_path}/ {self.rsyncd_module_url}"
139
+ self.subprocess_popen(commandline)
140
+ log.Debug(f"Created rsync daemon subpath '{self.rsyncd_subpath}'.")
141
+ self.remote_path_created = True
142
+
119
143
  def _put(self, source_path, remote_filename):
120
144
  remote_filename = os.fsdecode(remote_filename)
121
145
  remote_path = os.path.join(self.url_string, remote_filename)
@@ -318,9 +318,9 @@ class SSHPExpectBackend(duplicity.backend.Backend):
318
318
  commands = mkdir_commands + ["ls -1"]
319
319
  commandline = f"{self.sftp_command} {config.ssh_options} {self.host_string}"
320
320
 
321
- l = self.run_sftp_command(commandline, commands).split("\n")[1:]
321
+ lines = self.run_sftp_command(commandline, commands).split("\n")[1:]
322
322
 
323
- return [x for x in map(str.strip, l) if x]
323
+ return [os.fsencode(x) for x in map(str.strip, lines) if x]
324
324
 
325
325
  def _delete(self, filename):
326
326
  commands = [f'cd "{self.remote_dir}"']