{"id":29096,"date":"2020-05-29T16:39:05","date_gmt":"2020-05-29T20:39:05","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=29096"},"modified":"2020-05-29T16:39:05","modified_gmt":"2020-05-29T20:39:05","slug":"backing-up-core-data-stores","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/05\/29\/backing-up-core-data-stores\/","title":{"rendered":"Backing Up Core Data Stores"},"content":{"rendered":"<p><a href=\"https:\/\/atomicbird.com\/blog\/core-data-back-up-store\/\">Tom Harrington<\/a>:<\/p>\n<blockquote cite=\"https:\/\/atomicbird.com\/blog\/core-data-back-up-store\/\">\n<p>Once you use this method, the persistent store you migrated is removed from the persistent store coordinator. It also adds the newly-migrated store to the coordinator. So now the store is using the new copy instead of the old one. That&rsquo;s not good for a backup, since the new copy is the backup you just made that you want to leave alone. It&rsquo;s also a potential app crasher, since any managed objects you already fetched came from a persistent store that&rsquo;s no longer available.<\/p>\n<\/blockquote>\n<p>He recommends using a second, temporary persistent store coordinator as the source for the migration.<\/p>","protected":false},"excerpt":{"rendered":"<p>Tom Harrington: Once you use this method, the persistent store you migrated is removed from the persistent store coordinator. It also adds the newly-migrated store to the coordinator. So now the store is using the new copy instead of the old one. That&rsquo;s not good for a backup, since the new copy is the backup [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-05-29T20:39:08Z","apple_news_api_id":"1d3a7ed3-059a-4cc7-8c79-9f240c21520a","apple_news_api_modified_at":"2020-05-29T20:39:08Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AHTp-0wWaTMeMeZ8kDCFSCg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[146,109,31,1667,30,1666,71],"class_list":["post-29096","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-backup","tag-coredata","tag-ios","tag-ios-13","tag-mac","tag-macos-10-15","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=29096"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29096\/revisions"}],"predecessor-version":[{"id":29097,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/29096\/revisions\/29097"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=29096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=29096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=29096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}