Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export collections, documents, sub collections #90

Open
loic-hamdi opened this issue Oct 4, 2022 · 10 comments
Open

Export collections, documents, sub collections #90

loic-hamdi opened this issue Oct 4, 2022 · 10 comments

Comments

@loic-hamdi
Copy link

Is it possible to export all collections, documents, sub collections at once? (basically a backup of the database)

I tried on Mac M1 0.0.19 but the JSON export only save the current document.

@loic-hamdi
Copy link
Author

Screen Shot 2022-10-05 at 09 47 08

@thanhlmm Hi Thanh,
With the current app behavior, when I export production I only have the v1_0_0 document.
I would like to include in the export all the sub-collections and sub-documents like circles and their documents 440ccc70-d62b-11ec-bffc-2d592f6937fb and cb991d40-3fa0-11ed-bf9f-cf32d17fe588

How can I please do that?

@thanhlmm
Copy link
Owner

thanhlmm commented Oct 5, 2022

It is not possible now. You need to use some other npm CLI to do that I think. I have used it before and it works quite well

Try this https://www.npmjs.com/package/firestore-export-import

@loic-hamdi
Copy link
Author

It is not possible now. You need to use some other npm CLI to do that I think. I have used it before and it works quite well

Try this https://www.npmjs.com/package/firestore-export-import

Thank you for sharing the link & your reactivity.

Are you planning to include this feature in refi-app? That would be a such an important and awesome thing to add!

@thanhlmm
Copy link
Owner

thanhlmm commented Oct 5, 2022

I want to, but I'm quite busy making money to survive 🤣

@loic-hamdi
Copy link
Author

ahaha 🤣 don't give up!! 💪💰

@thanhlmm
Copy link
Owner

thanhlmm commented Oct 5, 2022

haha thanks! I gonna update Refi when I have time

I'm happy that you can use it :)

@loic-hamdi
Copy link
Author

Thank you! 😄

Here is an idea that would make refi-app an outstanding successful app:
🔥 Automated scheduled backup 🔥

@thanhlmm
Copy link
Owner

thanhlmm commented Oct 5, 2022

haha crazy idea, but for now refi app is a desktop and it can not run day by day to do the scheduled backup. Do you think we have other way?

@loic-hamdi
Copy link
Author

As it is a desktop app, maybe it is possible to:

  • tell user to keep refi-app always open
  • minimize it in tray
  • choose a backup frequency (for example every 48h or at 12:00pm every day)
  • export selected collections (and all sub-collections 😜 / sub-documents ) as JSON
  • save backup on local disk with a name based on export date like production_2022_10_05_at_11_40_am.JSON

It is not the best of the best but it seems to be something helpful, realistic and doable without a crazy amount of work 🤔

What do you think?

@andersdn11
Copy link

If you add Automated scheduled backup as a premium feature i would 100% pay for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants