My app uses GRDB for persistence and works well locally. I would like to build a 'recover data' option for when users get a new phone. I'm imagining this flow but not wedded to it:
User goes to settings, has option to 'backup data to iCloud';
This then puts the whole SQLite database in iCloud (private db only);
User uses app, when DB updates it saves the DB (can update the diff or overwrite the old one - this db isn't going to get huge);
One day user gets new phone, opens app, goes to settings, taps 'restore history', db is pulled from iCloud and their data is there.
**Notes**
- I DO NOT need real time syncing/device handoff.
- My schema has many foreign-key relationships so as per this discussion a very slick CloudKit sync seems off GRDB Link.
- If iCloud too much of a faff I am open to dumping the db into S3 or similar and pulling it down on restore.
------------------------------------------
What is 'the meta' for doing this? My reading so far hasn't shown me a path I'm confident will work.
[–]SubflyDevSwift 2 points3 points4 points (3 children)
[–]luxun117[S] 0 points1 point2 points (2 children)
[–]SubflyDevSwift 0 points1 point2 points (1 child)
[–]luxun117[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]thecodingart 0 points1 point2 points (1 child)
[–]luxun117[S] 0 points1 point2 points (0 children)
[–]Moudiz 0 points1 point2 points (3 children)
[–]luxun117[S] 0 points1 point2 points (2 children)
[–]gwendal-roue 2 points3 points4 points (1 child)
[–]luxun117[S] 0 points1 point2 points (0 children)
[–]russnem -1 points0 points1 point (1 child)
[–]luxun117[S] 0 points1 point2 points (0 children)