Working with Google Cloud Storage Nearline using gsutil

March 12, 2015 | By

Yesterday, we announced Google Cloud Storage Nearline.  Here are a few simple examples of working with nearline storage using the gsutil command-line tool:

#Create a new bucket:
gsutil mb -c nearline gs://nearline-bucket

#rsync the current directory to our new nearline bucket 
#(m=multi files at once):
gsutil -m rsync -r . gs://nearline-bucket

# Copy a specific file from the nearline bucket to a local directory:
gsutil cp gs://nearline-bucket/installers/build142.dmg ~/restore

# Copy the contents of another bucket to our new nearline bucket:
gsutil cp -r gs://mybucket/* gs://nearline-bucket

Important links about Nearline storage:

Share

Filed in: Google Cloud Platform, Google Cloud Storage | Tags: , , , , , , ,

About the Author (Author Profile)

Greg is a developer advocate for the Google Cloud Platform based in San Francisco, California

Comments are closed.