With Core Data, data migration usually refers to changing your data model and migrating a persistent store to the new model. Once you use this method, the persistent store you migrated is removed from the persistent store coordinator. try persistentStoreCoordinator.destroyPersistentStore(at: loadedStoreURL, ofType: persistentStore.type, options: persistentStore.options) // Add the backup store at its current location let backupStore = try persistentStoreCoordinator.addPersistentStore(ofType: persistentStore.type, configurationName: persistentStore.configurationName, at: backupStoreURL, options: persistentStore.options) // Migrate the backup store to the non-backup location.