Move IIS Logs to AWS s3 bucket Move IIS Logs to AWS s3 bucket powershell powershell

Move IIS Logs to AWS s3 bucket


UPDATE:

You could try and use the following method to create your folder structure within the S3 Bucket. Using the Key Prefix parameter and splitting your path to your folders should work.

$Params = @{    BucketName = 'backup'    Folder = '$Source or whatever path'    KeyPrefix = (Split-Path -Path 'C:\PATHTO\SOURCE\DIRECTORY' -Leaf).TrimEnd('\')    Recurse = $true    Region = 'REGION'}Write-S3Object @Params