BigData&AI

GCS (Google Cloud Storage) 사용량 확인/크기(Size)측정/다운로드방법

히핑소 2021. 12. 6. 15:15
반응형


gcs (google cloud storage) 에 수집된 용량 측정 방법은 다음과 같습니다.



gsutil(gcs 를 access 하기위한 python application) 미설치라면, 우선 설치하고

 

gsutil 설치  |  Cloud Storage  |  Google Cloud

의견 보내기 gsutil 설치 이 페이지에서는 HTTPS를 사용하여 명령줄에서 Cloud Storage에 액세스할 수 있는 도구인 gsutil의 설치 및 설정을 설명합니다. gsutil을 설치하면 공개 데이터에 대한 즉시 읽기

cloud.google.com

설치되었다면

D:\> gsutil du -sh gs://bucket_name

보기 편한대로 command option 을 주면 되며, 단순히 결과 숫자만 보고자 할 경우 -sh 를 씁니다.

2.88 TB 만큼현재 GCS를 쓰고 있고 여기서 매월 10GB는 무료 입니다.

서울 리전에 저장하고 있으므로 1TB당 $23 비용이 청구되어,

대략 월 $66 정도 비용이 나올 것 같습니다. (맨아래 비용 참조)

 

du - Display object size usage  |  Cloud Storage  |  Google Cloud

Send feedback du - Display object size usage Synopsis Description The du command displays the amount of space in bytes used up by the objects in a bucket, subdirectory, or project. The syntax emulates the Linux du -b command, which reports the disk usage o

cloud.google.com


그리고 다운로드 방법은 다음과 같습니다.

D:\> gsutil -m cp -r "gs//bucket_name" .

-m : 파일이 많거나 클 경우
-r : 현재 gcs 디렉토리 구조 그대로 가져올 때

 

cp - Copy files and objects  |  Cloud Storage  |  Google Cloud

Send feedback cp - Copy files and objects Synopsis gsutil cp [OPTION]... src_url dst_url gsutil cp [OPTION]... src_url... dst_url gsutil cp [OPTION]... -I dst_url Description The gsutil cp command allows you to copy data between your local file system and

cloud.google.com

 

GCP 및 GCS 비용 책정 방식 정리

 

Google Cloud Platform(GCP) BigQuery 비용/가격 정리

BigQuery 종류 및 비용 (미국/서울) google cloud storage (GCS) 비용도 storage pricing 과 동일(활성 $23, 장기 $16) 종류 방식 부과 기준 미국 서울 비고 무료 Analysis pricing On-demand pricing 정량제 1TB..

yannichoongs.tistory.com

 

반응형