Package: duplicity
Version: 0.8.04-2
Followup-For: Bug #942593
As part of my investigation, the following patch at least allows backups to
work:
--- b2backend.py.sav 2019-10-18 18:31:22.263319894 +0100
+++ b2backend.py 2019-10-18 18:42:10.969622822 +0100
@@ -110,6 +110,7 @@
u"""
Download remote_filename to local_path
"""
+ remote_filename = remote_filename.decode()
log.Log(u"Get: %s -> %s" % (self.path + remote_filename,
local_path.name), log.INFO)
self.bucket.download_file_by_name(quote_plus(self.path +
remote_filename),
b2.download_dest.DownloadDestLocalFile(local_path.name))
@@ -118,6 +119,7 @@
u"""
Copy source_path to remote_filename
"""
+ remote_filename = remote_filename.decode()
log.Log(u"Put: %s -> %s" % (source_path.name, self.path +
remote_filename), log.INFO)
self.bucket.upload_local_file(source_path.name, quote_plus(self.path +
remote_filename),
content_type=u'application/pgp-encrypted',
@@ -134,6 +136,7 @@
u"""
Delete filename from remote server
"""
+ filename = filename.decode()
log.Log(u"Delete: %s" % self.path + filename, log.INFO)
file_version_info = self.file_info(quote_plus(self.path + filename))
self.bucket.delete_file_version(file_version_info.id_,
file_version_info.file_name)
@@ -142,6 +145,7 @@
u"""
Get size info of filename
"""
+ filename = filename.decode()
log.Log(u"Query: %s" % self.path + filename, log.INFO)
file_version_info = self.file_info(quote_plus(self.path + filename))
return {u'size': file_version_info.size
Note: this is not a tested patch!! Nor am I a python programmer -- there is
likely to be a much better solution.
This is intended to provide additional information (and to make my particular
use-case work).
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL
set to en_IE.utf8), LANGUAGE=en_GB (charmap=UTF-8) (ignored: LC_ALL set to
en_IE.utf8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages duplicity depends on:
ii gnupg 2.2.17-3
ii libc6 2.29-2
ii librsync2 2.0.2-1
ii python3 3.7.5-1
ii python3-fasteners 0.12.0-5
ii python3-future 0.16.0-1
ii python3-lockfile 1:0.12.2-2
Versions of packages duplicity recommends:
ii python3-oauthlib 2.1.0-2
ii python3-paramiko 2.6.0-1
ii python3-pexpect 4.6.0-1
ii python3-urllib3 1.24.1-1
ii rsync 3.1.3-8
Versions of packages duplicity suggests:
pn lftp <none>
pn ncftp <none>
pn par2 <none>
pn python3-boto <none>
ii python3-pip 18.1-5
pn python3-swiftclient <none>
pn tahoe-lafs <none>
-- no debconf information