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 年前檢視次數 694 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南