Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
check bucket disk size
  • Loading branch information
unl1k3ly authored Jul 31, 2017
1 parent af48fc1 commit be624c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AWS Amazon Bucket S3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ SUCCESS : "move: ./test.txt to s3://hackerone.files/test.txt"
aws s3 sync s3://level3-9afd3927f195e10225021a578e6f78df.flaws.cloud/ . --no-sign-request --region us-west-2
```

## Check bucket disk size (authenticated) use, --no-sign for un-authenticated
```
aws s3 ls s3://<bucketname> --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'
```

## AWS - Extract Backup
```
Expand Down

0 comments on commit be624c9

Please sign in to comment.