Realistic Data Backup method for Parse.com

后端 未结 5 825
星月不相逢
星月不相逢 2021-02-01 20:07

We are building an iOS app with Parse.com, but still can\'t figure out the right way to backup data efficiently.

As a premise, we have and will have a LOT of data store

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 20:42

    For accidental deletes, writing a cloud function 'beforedelete' to backup the current row to another class would work.

    For regular backups, manual export of changed records (use filter) will be useful. For recovery this requires you to write scripts / use import option (not so sure) in data browser. You could also write a cloud function replicate data on your backup server (haven't tried this yet).

    However there are some limitations to cloud code that you should consider before venturing into it: https://parse.com/docs/cloud_code_guide#functions-resource

提交回复
热议问题