Nam Ngo's blog

Musings of a Software Developer.

Aliases for Google Storage

I’ve just registered an account on Google Storage last month and I totally love it as. I particularly like gsutil since I’m most of my time on Terminal. Here are two aliases I use with gsutil in my .bash_profile. Of course, remember to replace your bucket name

1
2
3
4
5
6
7
function gsup(){
    gsutil cp "$@" gs://bucketname.com
}

function gsdown(){
    gsutil cp gs://bucketname.com/"$@" ~/Desktop
}

Comments