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

Logging when backup and restore #121

Open
yingwei1025 opened this issue Dec 23, 2021 · 4 comments
Open

Logging when backup and restore #121

yingwei1025 opened this issue Dec 23, 2021 · 4 comments

Comments

@yingwei1025
Copy link

Hello there, is there any way can print out the log while doing backup and restore ? Because my backup usually take very long time and it will be good if can see any log is running.

Thank you.

@dalenguyen
Copy link
Owner

Hi @yingwei1025, there is a flag showLogs that you can try to use in order to show logs while importing.

https://github.com/dalenguyen/firestore-backup-restore#import--restore-options

@yingwei1025
Copy link
Author

Hi, is it apply on backup also? I try below like this but only show Promise { }

const options = {
      showLogs: true
    }

const status = await backup('collection-name', options).then((data) =>
  console.log(JSON.stringify(data))
)
console.log(status)

Thank you

@dalenguyen
Copy link
Owner

Hi @yingwei1025, it only appears when you import / restore data. Does it backup everything you have from the firestore?

@yingwei1025
Copy link
Author

I try backup from single collection only

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

2 participants