Created
September 18, 2017 21:54
-
-
Save RobsonAutomator/d33d686333eed9301a87fbc0d6c6d883 to your computer and use it in GitHub Desktop.
Copy files to S3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Initialize-AWSDefaults | |
Get-S3Bucket -BucketName [Name] | |
$items = Get-ChildItem -Path "C:\Users\Administrator\Desktop" -Filter *.bak | |
foreach( $item in $items ) | |
{ | |
Write-S3Object -BucketName [Name] -File "C:\Users\Administrator\Desktop\$item" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment