Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ckup into 75-s3
  • Loading branch information
Karina5005 committed Oct 17, 2023
2 parents a412b64 + eba4ada commit 20ee653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup_github/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def count_sizes(output_dir):
def upload_to_s3(ak, sk, endpoint, backup_dir, bucket, organization):
session = boto3.session.Session()
s3 = session.client(
service_name='s3',
service_name="s3",
aws_access_key_id=ak,
aws_secret_access_key=sk,
endpoint_url=endpoint,
verify=False
verify=False,
)
shutil.make_archive(base_name="backup_archive", format="gztar", root_dir=backup_dir)
resp = s3.upload_file(
Expand Down

0 comments on commit 20ee653

Please sign in to comment.