Hacker News new | ask | show | jobs
by tillk 4360 days ago
How do you backup this database? Does it integrate with iCloud or whatever is available on the device?
1 comments

The database is stored in a single file that is easily backed up. It does not have any explicit integration with iCloud, but you can easily use it to back up a copy of the db, or you can stream the copy back home yourself via ftp or http.
I'm somewhat of a newbie in regards to developing on mobile devices. Got any documentation how this is done from the phone?
I'm Kenneth at Realm. As realm databases are files on the phone's file system, you can use the common classes for manipulating them. To do a backup, the NSFileManager class might be useful (the copyItemAtURL method might be what you're looking for). See https://developer.apple.com/library/mac/documentation/Cocoa/... for details.