2

I'd like to have a 'backup' and 'restore' button in my app that just copies the entire SQLite database as a blob to iCloud. The database will always be small as it contains only hand-entered information.

Is this possible using iCloud or do I need to create an external service to manage this?

(If it matters: my app is created using the NimbleKit framework and jQuery Mobile UI)

1 Answers1

1

answer: it is possible.

iCloud + Storage of media in iPhone Documents folder & Will iCloud sync the files in Document folder of all apps?

Community
  • 1
  • 1
Daij-Djan
  • 49,552
  • 17
  • 113
  • 135
  • storing a whole sqlite db is nothing apple will like though – Daij-Djan Jan 01 '13 at 13:09
  • Thanks. Now I understand this, I will probably serialize backups to the Documents folder as xml or JSON or whatever so I can keep multiple backups, rather than storing the whole database. Do you think Apple would look on that more favourably? –  Jan 01 '13 at 13:28
  • I think they would, yes :) – Daij-Djan Jan 01 '13 at 13:30
  • Storing the SQLite there for backup purposes should be no problem-- Apple doesn't care if the format is SQLite or JSON or XML. – Tom Harrington Jan 02 '13 at 00:48
  • No, thats true but they care very much about filesize! And they rejected apps for that so one should not write ONE monolithic database - thats my point – Daij-Djan Jan 02 '13 at 06:57