In refrence to https://github.com/firebase/snippets-node/tree/master/firestore/solution-scheduled-backups

Open
#287 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
database

Research direction

Start with the firestore/solution-scheduled-backups example, especially cron.yml and the exportDocuments URL shown in the report. Reproduce the backup against the stated project configuration and inspect why the created bucket contains 0 bytes. Done means identifying the cause and documenting or correcting the example so a Firestore export produces usable backup data.

Written by the indexing model from the issue text.

Description

Hi Samstern,
I tried to use your repository for the firestore backup using cron.yml. It is creating the bucket but writing 0 bytes.
I have a question about this line:
const url = https://firestore.googleapis.com/v1beta1/projects/${projectId}/databases/(default):exportDocuments;
I have hardcoded like this: const url = 'https://firestore.googleapis.com/v1beta1/projects/cp-gaa-dev-dragonfly-arc/databases/(default):exportDocuments'

Please let me know what I am doing wrong.
Thanks
BC

Dominant language
JavaScript
Stars
395
Forks
139
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/snippets-node

All issues in firebase/snippets-node

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.