diff --git a/management/backup.py b/management/backup.py index ecd3ab1e..1c19954e 100755 --- a/management/backup.py +++ b/management/backup.py @@ -498,7 +498,7 @@ def list_target_files(config): msg = f"Connection to rsync host failed: {reason}" raise ValueError(msg) - elif target.scheme == "s3": + if target.scheme == "s3": import boto3.s3 from botocore.exceptions import ClientError