Move files from Buckets to local site with PowerShell

0

Hi everyone,

currently we are doing some testing regarding S3 buckets. We have an on-premise environment with some windows servers and we want to exchange files between on-premise and our S3 buckets by using Windows PowerShell Scripts.

Actually, it is already working quite well. So we can read and write data to/from the buckets. However, we also need to MOVE the files after successfully transferred from bucket to our windows environment. Unfortunately I couldn’t find a “Move” Command so far. I can only read and after that I can execute the delete command but that’s not exactly what we need.

Any help is greatly appreciated.

Thanks in advance! Aktuator

質問済み 2年前691ビュー
3回答
0
承認された回答

Have you looked in the s3 cli? You can try:

AWS
回答済み 2年前
  • the scripts will be executed on the windows server (on-premise site) so I think I can only use PowerShell, isnt it?

0

Hi Aktuator,

If you don't have AWS Cli installed you can check the step-by-step here: AWS Docs - AWS Cli Getting started. It has all the information you need to setup the AWS Cli in your Windows OS.

After installing it I recommend checking the AWS Cli Documentation, more specifically, the S3 commands. And just like AWS-User answered, the commands you are probably looking for are aws s3 mv and aws s3 sync.

I hope this helps.

Best regards, Gabriel Bartholomeu

AWS
回答済み 2年前
0

Thank you guys! I had a look at it and it looks like exactly what I needed. :-) Greetings!

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ