Skip to content

Instantly share code, notes, and snippets.

Add-Type -Path "C:\Program Files (x86)\AWS SDK for .NET\bin\AWSSDK.dll"
$secretKeyID="secret key"
$secretAccessKeyID="access key"
$bucket="BucketName"
$backup_directory="C:\teste"
$new_folder_format = Get-Date -uformat "Backup_%Y_%m_%d/"
foreach($file in Get-ChildItem -Path $backup_directory){