I frequently use Google Cloud Storage with at least two accounts: personal@gmail.com and work@corp.com. I used gsutil config
to create .boto
files for both accounts, which I've renamed to personal.boto
and work.boto
.
It is tiring to have to remember to type cp personal.boto ~/.boto
whenever I need to switch between these accounts. Is there a better way?
Easiest way to do this is as follows:
$ BOTO_CONFIG=/path/to/personal.boto gsutil cp #...
For more detailed variations on this theme see this thread.