diff --git a/management/backup.py b/management/backup.py index 4e2f146a..7f78395d 100755 --- a/management/backup.py +++ b/management/backup.py @@ -473,10 +473,18 @@ def list_target_files(config): raise ValueError(e.reason) return [(key.name[len(path):], key.size) for key in bucket.list(prefix=path)] - + elif target.scheme == "b2": else: raise ValueError(config["target"]) +def b2_perform_authentication(acc_id, app_key): + # Perform Authentication with B2 Storage. Returns a tuple + # containing the auth token and the API endpoint to use. + from urllib.request import Request, urlopen + import base64 + import json + + req = Request() def backup_set_custom(env, target, target_user, target_pass, min_age): config = get_backup_config(env, for_save=True) diff --git a/management/templates/system-backup.html b/management/templates/system-backup.html index 0db9a694..0e6d9a15 100644 --- a/management/templates/system-backup.html +++ b/management/templates/system-backup.html @@ -18,7 +18,7 @@ - + @@ -105,11 +105,11 @@ - +
Backups are stored in an B2Blaze bucket. You must have an B2Blaze 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 B2Blaze bucket.
+Backups are stored in an B2 Storage bucket. You must have an B2 Storage 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 B2 Storage bucket.