LoginSignup
0
0

More than 5 years have passed since last update.

大量のファイルを Nearline Storage にtarで固めながらアップロードする

Last updated at Posted at 2016-08-11

SubversionのHomeフォルダをまるごとNearline Storageへアップロードしていたのだが、流石にファイル数が多くてコピーだけで5$/monthかかるようになってしまっていたので試験的に導入。

tar cf - ~/* | /usr/local/bin/gsutil cp - gs://[bucket-url]/`date +%Y%m%d-%H%M%S`.tar

いわゆるワンライナー。複数転送はできないので時間がかかってしまうが、仕方ない。

tar czf - ~/* | /usr/local/bin/gsutil cp - gs://[bucket-url]/`date +%Y%m%d-%H%M%S`.tar.gz

も可能っぽい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0