How To Transfer Firestore Data From One Project To Another
Vložit
- čas přidán 11. 06. 2024
- In this lesson we cover how to transfer Firestore data from one project to another using storage buckets and cloud shell.
Reference Documentation:
firebase.google.com/docs/fire...
cloud.google.com/storage/docs...
console.cloud.google.com/tran...
Learn more from my courses at www.jonnybcodes.com/
Checkout my Patreon page: / jonnybcodes
And follow me here:
Twitter: / jonnybcodes
Instagram: / jonnybcodes
Thanks for this much needed guidance on how to backup and import between project accounts.
Thank you for this Jonny, it made the whole process much easier.
Thanks for this bro. You can just say it at the beginning lol. The documentation is not great. We needed this.
Thanks for the video!.
I had to add the "Storage Transfer Admin" role to the service account that is responsible for the transfer job to get this work.
Awesome Jonny, thanks for this tutorial. This is just what I needed :)
Thanks pal! really useful
Straightforward tutorial esp. for beginners like me, thanks Jonny for the video.
Awesome tutorial Johnny. Thanx
This was very helpful, thank you, sir.
Thank you so much! This was really helpful!
Gee thanks, that was super helpful! It would be great if Firebase provided a visual graphic of what steps are required so we have a picture in our mind of what we need to accomplish. Thanks again :)
thank you Jonny Bro
Amazing, thanks
YES THANK TOY SM THE DOCUMENTATION WAS SOO CONFUSING
Thanks a lot, great video!
Thank you for this!
Thanks for this
Impecable, muchas gracias por el tutorial !!
Thank you very much
You are a saviour!
Well saved my day actually data of whole year
worked for me thanks
thank you so much it is useful
Thank you!
Thank you! :)
Great work! Google documents are just confusing!
love to see you
Thanks for creating this great video. it helped a lot. as you said documentation is not enough. how we can transfer files like images from Storage? the thing you explained is only about documents and collections
Super bro..
thank u
hey JonnyB... what if i add my another email as another owner then i go to my second account and delete the original owner is that works fine??
Hi Jonny,
Thanks for the video, you can explain it easily and clearly. However I don't understand one thing: does this transfer which at this video only transfer the Firestore database or even Firebase authentication and Firebase storage data?
Hi have you figure this out?
Thanks for this, does it migrate all the authentication users?
is the process the same if the destination project already had collections that have same name as source project?
love_it
Some how I cannot make it work with specific collections, I'm using the %20 as space and all, they get exported to the source bucket and imported to the destination bucket, but importing to destination from destination bucket although "Successful" is not being done....any thoughts ?
Yes video was helpful but I want to move storage between 2 project not only firestore database stuff,
any usefull links ?
Hello, the storage wasn't transfered, do you know why ?
In this command "gcloud firestore import gs://[SOURCE_BUCKET]/[EXPORT_PREFIX] --async" under import data section of the docs is really confusing. The indicative "[SOURCE_BUCKET] actually is not the original source bucket from where I have already transferred the data to a new destination bucket. Rather, it is the destination bucket (at data transfer stage) which will use the command as a source of data to import into the new project. am i right?
Correct, and yes it is super confusing!!
SUBSCRIBE! Thank you for sharing
THANKS!
To do the same but to a separate project just change this:
1. Create the bucket in the target project 2.
2. Give Owner permissions to the user of the source project
3. Commands to grant IAM permissions to the bucket of the target project:
-gsutil iam ch serviceAccount:PROJECT_ID_ORIGEN@appspot.gserviceaccount.com:admin \.
-gs://BUCKET_NAME_DESTINATION_NAME
4. Export Firestore data from the source project to the target project bucket:
-gcloud firestore export gs://BUCKET_DESTINATION --async
5. Import the data into the target project via the Firestore interface in the Google Cloud Platform menu.
- Imports/Exports section
- Import
- Find in the created bucket the folder that was created when exporting, inside select the .overall_export_metadata file and lis
awesome tutorial thank you!