diff --git a/management/templates/system-backup.html b/management/templates/system-backup.html index 297c21fe..e8dc4cbf 100644 --- a/management/templates/system-backup.html +++ b/management/templates/system-backup.html @@ -115,26 +115,26 @@
-

Backups are stored in a Backblaze B2 bucket. You must have a Backblaze account already.

-

You MUST manually copy the encryption password from to a safe and secure location. You will need this file to decrypt backup files. It is NOT stored in your Backblaze B2 bucket.

+

Backups are stored in a Backblaze B2 bucket. You must have a Backblaze account already.

+

You MUST manually copy the encryption password from to a safe and secure location. You will need this file to decrypt backup files. It is NOT stored in your Backblaze B2 bucket.

- +
- +
- +
@@ -273,9 +273,10 @@ function show_custom_backup() { $("#backup-target-s3-path").val(hostpath.join('/')); } else if (r.target.substring(0, 5) == "b2://") { $("#backup-target-type").val("b2"); - var b2_application_keyid = r.target.substring(5).split(':')[0]; - var b2_applicationkey = r.target.substring(5).split(':')[1].split('@')[0]; - var b2_bucket = r.target.substring(5).split('@')[1]; + var targetPath = r.target.substring(5); + var b2_application_keyid = targetPath.split(':')[0]; + var b2_applicationkey = targetPath.split(':')[1].split('@')[0]; + var b2_bucket = targetPath.split('@')[1]; $("#backup-target-b2-user").val(b2_application_keyid); $("#backup-target-b2-pass").val(b2_applicationkey); $("#backup-target-b2-bucket").val(b2_bucket); diff --git a/setup/management.sh b/setup/management.sh index aac7c126..c83ced1d 100755 --- a/setup/management.sh +++ b/setup/management.sh @@ -18,11 +18,7 @@ while [ -d /usr/local/lib/python3.4/dist-packages/acme ]; do pip3 uninstall -y acme; done -# duplicity is used to make backups of user data. It uses boto -# (via Python 2) to do backups to AWS S3. boto from the Ubuntu -# package manager is too out-of-date -- it doesn't support the newer -# S3 api used in some regions, which breaks backups to those regions. -# See #627, #653. +# duplicity is used to make backups of user data. # # virtualenv is used to isolate the Python 3 packages we # install via pip from the system-installed packages. @@ -30,10 +26,11 @@ done # certbot installs EFF's certbot which we use to # provision free TLS certificates. apt_install duplicity python-pip virtualenv certbot -hide_output pip2 install --upgrade boto -# b2sdk is installed outside the pipenv, so it can be used by duplicity -hide_output pip3 install b2sdk +# 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 b2sdk boto # Create a virtualenv for the installation of Python 3 packages # used by the management daemon.