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
No edit summary
No edit summary
 
Line 27: Line 27:


= 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/





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"