#!/bin/bash
clear
echo -e "\e[1;35m #LIST \e[0m"
echo -e "\e[1;31m  SYNTAX : aws s3 ls s3://<Bucket_Name> \e[0m"
echo ""
echo -e "\e[1;35m  #EXAMPLES: \e[0m"
echo -e "\e[1;34m   #To list the files in bucket. \e[0m"
echo -e "\e[1;33m    aws s3 ls s3://magento-shops/ \e[0m"

echo -e "\e[1;34m   #To list all files recursively in the bucket into human readable format. \e[0m"
echo -e "\e[1;33m    aws s3 ls s3://magento-shops --recursive --human-readable --summarize \e[0m"
echo ""

echo -e "\e[1;35m #DOWNLOAD \e[0m"
echo -e "\e[1;31m  SYNTAX : aws s3 ls s3://<Bucket_Name>/<PATH_TO_FILE>/package.tar.gz /LOCAL_DOWNLOAD_FOLDER/ \e[0m"
echo ""
echo -e "\e[1;35m  #EXAMPLES: \e[0m"
echo -e "\e[1;34m   #To download backuo if user named ABC from S3 to /backup folder on the server. \e[0m"
echo -e "\e[1;33m    aws s3 cp s3://<Bucket_Name>/<PATH_TO_FILE>/ABC.tar.gz /LOCAL_DOWNLOAD_FOLDER/ \e[0m"

