Download FireStorage files using gsutil
up vote
0
down vote
favorite
I am trying to download all files to my system from my firestorage using gsutil.
I am using the following command as per the documentation to download all .jpg files:
gsutil cp gs://my-bucket/*.jpg
however I am getting the error saying that the cp command has the wrong number of arguments I suppose its asking for a path in my computer, but how do I put that there??
firebase firebase-storage gsutil
New contributor
add a comment |
up vote
0
down vote
favorite
I am trying to download all files to my system from my firestorage using gsutil.
I am using the following command as per the documentation to download all .jpg files:
gsutil cp gs://my-bucket/*.jpg
however I am getting the error saying that the cp command has the wrong number of arguments I suppose its asking for a path in my computer, but how do I put that there??
firebase firebase-storage gsutil
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to download all files to my system from my firestorage using gsutil.
I am using the following command as per the documentation to download all .jpg files:
gsutil cp gs://my-bucket/*.jpg
however I am getting the error saying that the cp command has the wrong number of arguments I suppose its asking for a path in my computer, but how do I put that there??
firebase firebase-storage gsutil
New contributor
I am trying to download all files to my system from my firestorage using gsutil.
I am using the following command as per the documentation to download all .jpg files:
gsutil cp gs://my-bucket/*.jpg
however I am getting the error saying that the cp command has the wrong number of arguments I suppose its asking for a path in my computer, but how do I put that there??
firebase firebase-storage gsutil
firebase firebase-storage gsutil
New contributor
New contributor
edited Nov 19 at 12:57
New contributor
asked Nov 19 at 12:41
Pemba Tamang
105
105
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
The syntax for gsutil cp
is:
gsutil cp <source> <destination>
You're calling it as:
gsutil cp gs://my-bucket/*.jpg
This means that you're specifying a source, but not a destination. If you want to for example store the files in the directory/folder where you run the command, you would run it as:
gsutil cp gs://my-bucket/*.jpg .
The .
at the end there means that the destination is the current directory, where you run the command.
I see how do I specify my local storage as the destination?? and my bucket looks like thisgs://mybucket/File/Path One
. so do I give the space there or do I writegs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
The.
is the local directory on the machine where you rungsutil
. If you run that local you local machine, the files are put into the directory where you run the command.
– Frank van Puffelen
Nov 20 at 5:41
sorry guys I missed the.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..
– Pemba Tamang
Nov 20 at 6:15
add a comment |
up vote
1
down vote
Please go back and check well, it is suppossed to work fine.
gsutil cp gs://my-bucket/*.txt .
1
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The syntax for gsutil cp
is:
gsutil cp <source> <destination>
You're calling it as:
gsutil cp gs://my-bucket/*.jpg
This means that you're specifying a source, but not a destination. If you want to for example store the files in the directory/folder where you run the command, you would run it as:
gsutil cp gs://my-bucket/*.jpg .
The .
at the end there means that the destination is the current directory, where you run the command.
I see how do I specify my local storage as the destination?? and my bucket looks like thisgs://mybucket/File/Path One
. so do I give the space there or do I writegs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
The.
is the local directory on the machine where you rungsutil
. If you run that local you local machine, the files are put into the directory where you run the command.
– Frank van Puffelen
Nov 20 at 5:41
sorry guys I missed the.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..
– Pemba Tamang
Nov 20 at 6:15
add a comment |
up vote
1
down vote
accepted
The syntax for gsutil cp
is:
gsutil cp <source> <destination>
You're calling it as:
gsutil cp gs://my-bucket/*.jpg
This means that you're specifying a source, but not a destination. If you want to for example store the files in the directory/folder where you run the command, you would run it as:
gsutil cp gs://my-bucket/*.jpg .
The .
at the end there means that the destination is the current directory, where you run the command.
I see how do I specify my local storage as the destination?? and my bucket looks like thisgs://mybucket/File/Path One
. so do I give the space there or do I writegs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
The.
is the local directory on the machine where you rungsutil
. If you run that local you local machine, the files are put into the directory where you run the command.
– Frank van Puffelen
Nov 20 at 5:41
sorry guys I missed the.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..
– Pemba Tamang
Nov 20 at 6:15
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The syntax for gsutil cp
is:
gsutil cp <source> <destination>
You're calling it as:
gsutil cp gs://my-bucket/*.jpg
This means that you're specifying a source, but not a destination. If you want to for example store the files in the directory/folder where you run the command, you would run it as:
gsutil cp gs://my-bucket/*.jpg .
The .
at the end there means that the destination is the current directory, where you run the command.
The syntax for gsutil cp
is:
gsutil cp <source> <destination>
You're calling it as:
gsutil cp gs://my-bucket/*.jpg
This means that you're specifying a source, but not a destination. If you want to for example store the files in the directory/folder where you run the command, you would run it as:
gsutil cp gs://my-bucket/*.jpg .
The .
at the end there means that the destination is the current directory, where you run the command.
answered Nov 19 at 15:29
Frank van Puffelen
220k25361387
220k25361387
I see how do I specify my local storage as the destination?? and my bucket looks like thisgs://mybucket/File/Path One
. so do I give the space there or do I writegs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
The.
is the local directory on the machine where you rungsutil
. If you run that local you local machine, the files are put into the directory where you run the command.
– Frank van Puffelen
Nov 20 at 5:41
sorry guys I missed the.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..
– Pemba Tamang
Nov 20 at 6:15
add a comment |
I see how do I specify my local storage as the destination?? and my bucket looks like thisgs://mybucket/File/Path One
. so do I give the space there or do I writegs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
The.
is the local directory on the machine where you rungsutil
. If you run that local you local machine, the files are put into the directory where you run the command.
– Frank van Puffelen
Nov 20 at 5:41
sorry guys I missed the.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..
– Pemba Tamang
Nov 20 at 6:15
I see how do I specify my local storage as the destination?? and my bucket looks like this
gs://mybucket/File/Path One
. so do I give the space there or do I write gs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
I see how do I specify my local storage as the destination?? and my bucket looks like this
gs://mybucket/File/Path One
. so do I give the space there or do I write gs://mybucket/File/ Path%20%One
– Pemba Tamang
Nov 20 at 4:47
The
.
is the local directory on the machine where you run gsutil
. If you run that local you local machine, the files are put into the directory where you run the command.– Frank van Puffelen
Nov 20 at 5:41
The
.
is the local directory on the machine where you run gsutil
. If you run that local you local machine, the files are put into the directory where you run the command.– Frank van Puffelen
Nov 20 at 5:41
sorry guys I missed the
.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..– Pemba Tamang
Nov 20 at 6:15
sorry guys I missed the
.
in the docs and in this comment. Thanks alot. I was multitasking skimming through , honestly it feels embarassing..– Pemba Tamang
Nov 20 at 6:15
add a comment |
up vote
1
down vote
Please go back and check well, it is suppossed to work fine.
gsutil cp gs://my-bucket/*.txt .
1
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
add a comment |
up vote
1
down vote
Please go back and check well, it is suppossed to work fine.
gsutil cp gs://my-bucket/*.txt .
1
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
add a comment |
up vote
1
down vote
up vote
1
down vote
Please go back and check well, it is suppossed to work fine.
gsutil cp gs://my-bucket/*.txt .
Please go back and check well, it is suppossed to work fine.
gsutil cp gs://my-bucket/*.txt .
answered Nov 19 at 12:48
ElectronSz
346
346
1
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
add a comment |
1
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
1
1
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
did u try it yourself??
– Pemba Tamang
Nov 19 at 12:55
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
Yes it is working fine
– ElectronSz
Nov 19 at 15:07
add a comment |
Pemba Tamang is a new contributor. Be nice, and check out our Code of Conduct.
Pemba Tamang is a new contributor. Be nice, and check out our Code of Conduct.
Pemba Tamang is a new contributor. Be nice, and check out our Code of Conduct.
Pemba Tamang is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53374887%2fdownload-firestorage-files-using-gsutil%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown