티스토리 뷰

공부

[aws] cli s3 du

승가비 2022. 11. 26. 05:35
728x90
aws s3 ls s3://bucket --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024/1024" GB"}'

https://gist.github.com/stefhen/06e9e87cb28eb46b9e34

 

aws cli s3 du

aws cli s3 du. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

728x90
댓글
댓글쓰기 폼