Powershell script that backups a given directory in an S3 bucket. After a file is safelly uploaded, it's removed from local disk to prevent filling up.
Note: The aws-S3 client has to be already configured. Please follow these instruccions
DestinationBucket = bucketName
Name of the bucketDestinationFolder = "app_server_backups\prd"
Copy files to this location inside the bucketBackupDir = "C:\Logs"
Local directory will be backed upRetries = 3
Number of retries to upload a file if it fails