From be624c99ca9d9b987401b1b4f441f2141be328d0 Mon Sep 17 00:00:00 2001 From: unl1k3ly Date: Tue, 1 Aug 2017 08:37:04 +1000 Subject: [PATCH] Update README.md check bucket disk size --- AWS Amazon Bucket S3/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AWS Amazon Bucket S3/README.md b/AWS Amazon Bucket S3/README.md index 33f7950e..27488c28 100644 --- a/AWS Amazon Bucket S3/README.md +++ b/AWS Amazon Bucket S3/README.md @@ -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:// --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}' +``` ## AWS - Extract Backup ```