From d36a2cc938eea2b216b424084e1b82e34eee98c4 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 28 Feb 2021 07:54:55 -0500 Subject: [PATCH] Enable Backblaze B2 backups This reverts commit b1d703a5e717c086aea0e37e9b14f78150181880 and adds python3-setuptools per the first version of #1899 which fixes an installation error for the b2sdk Python package. --- CHANGELOG.md | 7 +++++++ management/templates/system-backup.html | 3 ++- setup/management.sh | 5 +++-- setup/system.sh | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7d548f..cb00dd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ CHANGELOG ========= +In Development +-------------- + +Control panel: + +* Backblaze B2 is now a supported backup protocol. + v0.52 (January 31, 2021) ------------------------ diff --git a/management/templates/system-backup.html b/management/templates/system-backup.html index 7c4fef1..7cdc380 100644 --- a/management/templates/system-backup.html +++ b/management/templates/system-backup.html @@ -18,6 +18,7 @@ + @@ -342,4 +343,4 @@ function init_inputs(target_type) { set_host($('#backup-target-s3-host-select').val()); } } - + \ No newline at end of file diff --git a/setup/management.sh b/setup/management.sh index 1a5ab53..dcef089 100755 --- a/setup/management.sh +++ b/setup/management.sh @@ -27,9 +27,10 @@ done # provision free TLS certificates. apt_install duplicity python-pip virtualenv certbot +# b2sdk is used for backblaze backups. # boto is used for amazon aws backups. # Both are installed outside the pipenv, so they can be used by duplicity -hide_output pip3 install --upgrade boto +hide_output pip3 install --upgrade b2sdk boto # Create a virtualenv for the installation of Python 3 packages # used by the management daemon. @@ -50,7 +51,7 @@ hide_output $venv/bin/pip install --upgrade \ rtyaml "email_validator>=1.0.0" "exclusiveprocess" \ flask dnspython python-dateutil \ qrcode[pil] pyotp \ - "idna>=2.0.0" "cryptography==2.2.2" boto psutil postfix-mta-sts-resolver + "idna>=2.0.0" "cryptography==2.2.2" boto psutil postfix-mta-sts-resolver b2sdk # CONFIGURATION diff --git a/setup/system.sh b/setup/system.sh index 208a35d..ed399ba 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -131,7 +131,7 @@ apt_get_quiet autoremove # * openssh-client: provides ssh-keygen echo Installing system packages... -apt_install python3 python3-dev python3-pip \ +apt_install python3 python3-dev python3-pip python3-setuptools \ netcat-openbsd wget curl git sudo coreutils bc \ haveged pollinate openssh-client unzip \ unattended-upgrades cron ntp fail2ban rsyslog