Configure AWS profile using below command
aws configure
– it will ask you to provide below things
Access key ID Secret access key Region Format
Sync AWS S3 from your local files using above command
aws s3 sync /var/www/pattofiles/ s3://bucketname
Sync from AWS S3 to your local directory
aws s3 sync s3://bucketname /var/www/pattofiles/