Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. How to list objects in aria-share bucket [3]

    Code Block
    aws s3 ls s3://aria-share --recursive --human-readable --summarize

  2. How to upload and download content from aria-share bucket [4,5]

    1. How to upload file to ARIA-share bucket

      Code Block
      aws s3 cp /PATH/OF/FILE_TO_UPLOAD s3://aria-share

    2. How to upload directory to ARIA-share bucket

      Code Block
      aws s3 sync /PATH/OF/DIRECTORY_TO_UPLOAD s3://aria-share

    3. How to download file from ARIA-share bucket

      Code Block
      aws s3 cp s3://aria-share/FILE_TO_DOWNLOAD /PATH/TO/DIRECTORY

    4. How to download directory from ARIA-share bucket

      Code Block
      aws s3 sync s3://aria-share/DIRECTORY_TO_DOWNLOAD /PATH/TO/DIRECTORY

    5. Here are a few flags to use to help make uploads and downloads more efficient

      1. --dryrun (boolean) Displays the operations that would be performed using the specified command without actually running them.

      2. --include (string) Don't exclude files or objects in the command that match the specified pattern. See Use of Exclude and Include Filters for details.

      3. --exclude (string) Exclude all files or objects from the command that matches the specified pattern.

  3. How to remove content from aria-share bucket [6]

    1. How to delete a file to ARIA-share bucket

      Code Block
      aws s3 rm s3://aria-share/FILE_TO_DELETE

    2. How to delete multiple files in a directory from ARIA-share bucket

      Code Block
      aws s3 rm s3://aria-share/DIRECTORY_TO_DELETE_FILES_FROM/ --recursive

    3. How to delete a directory and it content from ARIA-share bucket (difference between previous command “b” is the removal of the tailing “/”)

      Code Block
      aws s3 rm s3://aria-share/DIRECTORY_TO_DELETE --recursive

Resources

  1. Installing the AWS CLI version 2

  2. Quick Configuration with AWS Configure

  3. AWS CLI ls command reference

  4. AWS CLI sync command reference

  5. AWS CLI cp command reference

  6. AWS CLI rm command reference