Expand backup documentation
This commit is contained in:
parent
a52b2992af
commit
29b946671b
|
@ -1,6 +1,20 @@
|
|||
// This code is copied from https://firebase.google.com/docs/firestore/solutions/schedule-export
|
||||
// To deploy after any changes: `yarn deploy`
|
||||
// To import the data into dev Firestore: https://firebase.google.com/docs/firestore/manage-data/move-data
|
||||
//
|
||||
// To deploy after any changes:
|
||||
// `yarn deploy`
|
||||
//
|
||||
// To manually run a backup: Click "Run Now" on the backupDb script
|
||||
// https://console.cloud.google.com/cloudscheduler?project=mantic-markets
|
||||
//
|
||||
// Backups are here:
|
||||
// https://console.cloud.google.com/storage/browser/manifold-firestore-backup
|
||||
//
|
||||
// To import the data into dev Firestore (from https://firebase.google.com/docs/firestore/manage-data/move-data):
|
||||
// 0. Open up a cloud shell from manticmarkets@gmail.com: https://console.cloud.google.com/home/dashboard?cloudshell=true
|
||||
// 1. `gcloud config set project dev-mantic-markets`
|
||||
// 2. Get the backup timestamp e.g. `2022-01-25T21:19:20_6605`
|
||||
// 3. `gcloud firestore import gs://manifold-firestore-backup/2022-01-25T21:19:20_6605 --async`
|
||||
// 4. (Optional) `gcloud firestore operations list` to check progress
|
||||
|
||||
import * as functions from 'firebase-functions'
|
||||
import * as firestore from '@google-cloud/firestore'
|
||||
|
|
Loading…
Reference in New Issue
Block a user