proxy settings
parent
36bf63acdb
commit
52c5275634
|
|
@ -278,7 +278,8 @@ if(len(sys.argv) == 2):
|
||||||
s3 = boto3.client('s3')
|
s3 = boto3.client('s3')
|
||||||
|
|
||||||
with open(outputFolder+"/"+timestamp + "_" +env+'.zip', 'rb') as data:
|
with open(outputFolder+"/"+timestamp + "_" +env+'.zip', 'rb') as data:
|
||||||
s3.upload_fileobj(data, str(os.getenv("AWS_S3_BUCKET"), 'backups/'+timestamp + "_" +env+'.zip')) #TODO: Make s3 bucket name configurable over environment variables
|
s3.upload_fileobj(data, str(os.getenv("AWS_S3_BUCKET")), 'backups/'+timestamp + "_" +env+'.zip') #TODO: Make s3 bucket name configurable over environment variables
|
||||||
|
|
||||||
|
|
||||||
print("Finished!")
|
print("Finished!")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue