Copying files to AWS s3 from Ubuntu: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
(Created page with "Tech Notes > AWS > Copying files to AWS s3 from Ubuntu = First, AWS tools = Make sure you have AWS tools installed before doing this. = Generare an key = = Copy Commands = == Copy a single file == aws s3 cp display_server.ova s3://'''s3-bucket-name'''/'''path''' == Recursive copy of an extension == aws s3 cp . s3:/'''s3-bucket-name'''/ --recursive --exclude "*" --include "*.ova"")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:


Make sure you have AWS tools installed before doing this.
Make sure you have AWS tools installed before doing this.
[[Installing AWS CLI]]




= Generare an key =
= Generare an key =
* Login to the AWS IAM console.
:* Select the the user for the app key
:* Select ''Access keys'
:* Select ''Create Access key''
* In ubuntu run
aws configure




= Copy Commands =
= Copy Commands =


== Copy a single file ==
== Copy a single file ==


  aws s3 cp display_server.ova s3://'''s3-bucket-name'''/'''path'''
  aws s3 cp display_server.ova s3://'''s3-bucket-name'''/'''path'''
== Copy a folder ==
aws s3 sync . s3://YOURBUCKET/


== Recursive copy of an extension ==
== Recursive copy of an extension ==


  aws s3 cp . s3:/'''s3-bucket-name'''/ --recursive --exclude "*" --include "*.ova"
  aws s3 cp . s3:/'''s3-bucket-name'''/ --recursive --exclude "*" --include "*.ova"

Latest revision as of 00:48, 26 May 2026

Tech Notes > AWS > Copying files to AWS s3 from Ubuntu


First, AWS tools

Make sure you have AWS tools installed before doing this.

Installing AWS CLI


Generare an key

  • Login to the AWS IAM console.
  • Select the the user for the app key
  • Select Access keys'
  • Select Create Access key
  • In ubuntu run
aws configure


Copy Commands

Copy a single file

aws s3 cp display_server.ova s3://s3-bucket-name/path


Copy a folder

aws s3 sync . s3://YOURBUCKET/


Recursive copy of an extension

aws s3 cp . s3:/s3-bucket-name/ --recursive --exclude "*" --include "*.ova"