Mostly Undocumented

Last year I wrote about backing up and restoring Core Data. Recently Arnaud Joubay messaged me to ask about it. I used a method called migratePersistentStore(…) to duplicate a persistent store. Arnaud asked why I had not used a similar method called replacePersistentStore(…) instead. He also sent me a link to a post on Apple’s dev forum site, attributed to an anonymous framework engineer, which had this to say on the topic: