---
title: "Google Cloud Storage Nearlineを試してみた！ | grasys blog"
url: "https://blog.grasys.io/post/yusukeh/google-cloud-storage-nearline"
description: "新しいの出たから速攻試す！ 以下DocumentURLhttps://cloud.google.com/storage/docs/nearline storage 適当に1GBのファイル作成 ASIAでNearlineのbucket作成 NEARLINEになってるか確認 コピーしてみると同時に何秒かかるか 結果 100個くらいのファイルでやってみる ガバっとrsync 結果 取り出す はええｗｗ あんま気にしないでbackup用途に使お…"
---

# Google Cloud Storage Nearlineを試してみた！

-   ![](/_astro/noicon.CTHOhNiB_1HMs6A.webp)[yusukeh](/authors/yusukeh/)
-   公開日：2015年3月19日
-   カテゴリー：[Tech](/categories/tech/)
-   タグ：[#Google Cloud](/tags/google-cloud/)[#Cloud Storage](/tags/cloud-storage/)[#Nearline](/tags/nearline/)

![Google Cloud Storage Nearlineを試してみた！](/_astro/ogp.DdohqSUF_siywJ.webp)

新しいの出たから速攻試す！

以下DocumentURL[https://cloud.google.com/storage/docs/nearline-storage](https://cloud.google.com/storage/docs/nearline-storage)

適当に1GBのファイル作成

Plain textcontent\_copy

```
dd if=/dev/zero of=dummy_file_1GB bs=1024 count=1024000
```

ASIAでNearlineのbucket作成

Plain textcontent\_copy

```
gsutil mb -c NEARLINE -l ASIA gs://grasys_backup
```

NEARLINEになってるか確認

Plain textcontent\_copy

```
gsutils -L
gs://grasys_backup/ :
  Storage class: NEARLINE
  Location constraint: ASIA
  Versioning enabled: None
  Logging configuration: None
  Website configuration: None
  CORS configuration: None
  Lifecycle configuration: None
………
```

コピーしてみると同時に何秒かかるか

Plain textcontent\_copy

```
time gsutil -m cp dummy_file_1GB gs://grasys_backup/
```

結果

Plain textcontent\_copy

```
real 0m33.016s
user 0m15.492s
sys 0m12.521s
```

100個くらいのファイルでやってみる

Plain textcontent\_copy

```
mkdir test
for n in `seq -w 1 100`; do dd if=/dev/zero of=test/dummy_file_$n bs=1024 count=1024 ; done
```

ガバっとrsync

Plain textcontent\_copy

```
time gsutil -m rsync -R -p test gs://grasys_backup/test
```

結果

Plain textcontent\_copy

```
real 0m7.263s
user 0m6.763s
sys 0m3.731s
```

取り出す

Plain textcontent\_copy

```
time gsutil cp gs://grasys_backup/test/dummy_file_001 ./
real 0m0.973s
user 0m0.474s
sys 0m0.279s
```

はええｗｗ

あんま気にしないでbackup用途に使おう・・・ｗ

転載：[Google Cloud Storage Nearlineを試してみた！](https://medium.com/@yusuke_h/google-cloud-storage-nearline%E3%82%92%E8%A9%A6%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F-48e018084580)

この記事は [Medium（@yusuke\_h）](https://medium.com/@yusuke_h) からの転載です。

## この記事を書いた人

[![](/_astro/yusukeh.BvUd2yKE_1mQ6Fp.webp)](/authors/yusukeh/)

### [yusukeh](/authors/yusukeh/)

Fly high. Think deep. Move fast. Go far.🦅

-   [X](https://x.com/yusukeh "X")
-   [GitHub](https://github.com/yusukeh "GitHub")
-   [Medium](https://medium.com/@yusukeh "Medium")
-   [Facebook](https://www.facebook.com/yusuke.exzm "Facebook")
-   [Instagram](https://www.instagram.com/yusukehasegawa/ "Instagram")
-   [LinkedIn](https://www.linkedin.com/in/hasegawa-yusuke-091b4164/ "LinkedIn")

[プロフィールと記事一覧](/authors/yusukeh/)