mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
99474b348f
We were using duplicity 0.8.21-ppa202111091602~ubuntu1 from the duplicity PPA probably until June 5, which is when my box automatically updated to 0.8.23-ppa202205151528~ubuntu18.04.1. Starting with that version, two changes broke backups:
* The default s3 backend was changed to boto3. But boto3 depends on the AWS SDK which does not support Ubuntu 18.04, so we can't install it. Instead, we map s3: backup target URLs to the boto+s3 scheme which tells duplicity to use legacy boto. This should be reverted when we can switch to boto3.
* Contrary to the documentation, the s3 target no longer accepts a S3 hostname in the URL. It now reads the bucket from the hostname part of the URL. So we now drop the hostname from our target URL before passing it to duplicity and we pass the endpoint URL in a separate command-line argument. (The boto backend was dropped from duplicity's "uses_netloc" in
|
||
---|---|---|
.. | ||
templates | ||
auth.py | ||
backup.py | ||
cli.py | ||
csr_country_codes.tsv | ||
daemon.py | ||
daily_tasks.sh | ||
dns_update.py | ||
email_administrator.py | ||
mail_log.py | ||
mailconfig.py | ||
mfa.py | ||
munin_start.sh | ||
ssl_certificates.py | ||
status_checks.py | ||
utils.py | ||
web_update.py |