AWS S3:我怎么看到多少磁盘空间使用 [英] AWS S3: how do I see how much disk space is using

查看:1088
本文介绍了AWS S3:我怎么看到多少磁盘空间使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有AWS账户。我使用的S3存储来自不同服务器的备份。问题是,有在AWS控制台多少磁盘spase使用我的S3云的信息吗?

I have AWS account. I'm using S3 to store backups from different servers. The question is there any information in AWS console about how much disk spase is using on my S3 cloud?

感谢

推荐答案

Yippe - 更新到AWS CLI允许您通过递归桶... ls的

Yippe - an update to AWS CLI allows you to recursively ls through buckets...

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 S3:我怎么看到多少磁盘空间使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆