Gsutil: Add a silent or quiet mode for gsutil

Created on 22 Feb 2013  ·  3Comments  ·  Source: GoogleCloudPlatform/gsutil

_Original author: [email protected] (August 02, 2012 17:40:03)_

We use gsutil in our scripts which run on linux, mac, and windows. We'd like gsutil to run in silent or quiet mode to avoid cluttering up our logs with lots and lots of upload statements.

Thanks!

_Original issue: http://code.google.com/p/gsutil/issues/detail?id=108_

Priority-Medium bug imported

Most helpful comment

The cp -q option does what you're asking for.

Correction, the proper flag location, since gsutil is flag position sensitive, is:

gsutil -q cp gs://foo/bar .

All 3 comments

_From [email protected] on August 04, 2012 02:22:06_
This already exists in the latest version of gsutil:
The cp -q option does what you're asking for.
Note that the current public release has some logic missing for this option (still will output progress messages for resumable transfers). I fixed those problems in the next version of gsutil. You can get the pre-release version that fixes those problems (and also supports the new setmeta command) by running:

gsutil update gs://prerelease/gsutil_3.15_PRE.tar.gz

_From [email protected] on August 06, 2012 18:24:40_
Thanks for the update!

The cp -q option does what you're asking for.

Correction, the proper flag location, since gsutil is flag position sensitive, is:

gsutil -q cp gs://foo/bar .
Was this page helpful?
0 / 5 - 0 ratings