大量のファイルを Nearline Storage にtarで固めながらアップロードする
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
も可能っぽい。
Author And Source
この問題について(大量のファイルを Nearline Storage にtarで固めながらアップロードする), 我々は、より多くの情報をここで見つけました https://qiita.com/Ruw/items/d1d046172b1233f352ee著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .