我想每天备份一个Firestore数据库。
我的数据结构是这样的:
usersCollection
uid
defaultCurrency: 'USD'
name: 'something'
dreamsCollection
name
image
Run Code Online (Sandbox Code Playgroud)
我已经研究过firestore-export-import并node-firestore-backup进行备份并将数据导出到JSON文件。
我的问题是:
任何帮助,无论多么小,我们将不胜感激。
谢谢
尝试在python服务器上集成Google Firestore API
...
File "/home/daffolap-355/repos/subscriptions/appvendor/firebase_admin/firestore.py", line 28, in <module>
raise ImportError('Failed to import the Cloud Firestore library for Python. Make sure '
ImportError: Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module.
Run Code Online (Sandbox Code Playgroud)
我在这里收到此错误:
from firebase_admin import credentials, auth, firestore
我安装了firebase-admin模块:
pip install --upgrade -t libs firebase-admin
并运行应用
dev_appserver app.yaml
python google-app-engine firebase firebase-admin google-cloud-firestore