Recovering from Data Loss

#1

The easiest way to restore your data to an instance of Codebook (say a fresh install on a new device) is to sync the data over from another copy of Codebook where you had previously updated or synced your data. Alternatively, one can restore data by performing a restore sync against Dropbox or Google Drive, assuming you have previously used Codebook’s Sync feature with either service. In addition, Codebook for Windows and OS X have a built-in backups feature that saves a backup whenever you sync or change your password.

If restoring your data with Codebook’s Sync feature is not an option for you and you are using an iOS device, Apple has excellent instructions for restoring your data from iCloud and iTunes backups.

To restore Codebook data on iPhone, iPad and Android via Desktop WiFi:

  1. Launch Codebook on your desktop and sign in
  2. Ensure that sync is enabled in Codebook on your desktop
  3. Leave Codebook on your desktop running and signed in
  4. Launch Codebook on your mobile device and sign in
  5. Select the Sync tab
  6. Tap on Operation and set the mode to Restore
  7. Ensure Mode is set to Desktop WiFi
  8. Tap on Computer to choose your computer on the network
  9. Tap Start Sync

To restore Codebook data to a desktop from your iPhone, iPad or Android device:

  1. Launch Codebook on your desktop and sign in
  2. Ensure that sync is enabled in Codebook on your desktop
  3. Leave Codebook on your desktop running and signed in
  4. Launch Codebook on your mobile device and sign in
  5. Select the Sync tab
  6. Tap on Operation and set the mode to Overwrite
  7. Ensure Mode is set to Desktop WiFi
  8. Tap on Computer to choose your computer on the network
  9. Tap Start Sync

To restore Codebook on an Android, iPad or iPhone device from Google Drive or Dropbox:

  1. Launch Codebook on your mobile device and sign in
  2. Select the Sync tab
  3. Tap on Operation and set the mode to Restore
  4. Ensure Mode is set to either Dropbox or Google Drive
  5. If prompted, sign in to Dropbox / Google Drive
  6. Tap Start Sync

To restore Codebook for Windows or Codebook for OS X from Dropbox or Google Drive:

  1. Launch Codebook and sign in
  2. Open File -> Preferences (Codebook menu -> Preferences on the Mac) and check that sync is enabled and either Dropbox or Google Drive is selected
  3. Close Preferences window
  4. From the Sync menu choose Restore from Dropbox/Google Drive

To restore Codebook from Codebook Backups on Windows:

  1. Open Windows Explorer
  2. Paste the following path into the location bar to go directly to this folder:
    %APPDATA%\Zetetic LLC\Strip\backups
  3. Copy the backup file you are looking to restore
  4. Paste the following path into the location bar:
    %APPDATA%\Zetetic LLC\Strip\
  5. Remove or rename the file strip.db in that folder
  6. Paste your backup file
  7. Rename the file to strip.db

To restore Codebook from Codebook Backups on OS X:

  1. Switch to Finder
  2. Go to the Go menu, selecting “Go to Folder…” and pasting the following path:
    ~/Library/Containers/net.zetetic.Strip.mac/Data/Library/Application Support/Strip
  3. Go into the Backups folder in the folder that opens
  4. Choose a backup .db file to restore and select Copy from the Edit menu
  5. Go back to the parent ‘Strip’ folder
  6. Right-click (or control-click) on default.strip and select Show Package Contents
  7. Rename or remove the file strip.db
  8. Select Paste from the Edit menu and rename the backup file to strip.db
  9. Launch Codebook!
Taking a Backup
Migration from iOS to Android
Installing on a Replacement iPhone
#2

How to Restore iPad from iTunes Backup

  1. Plug iPad into computer via the USB cable. iTunes will launch, if not, manually open it on your computer.
  2. Click “File > Device > Restore from Backup” at the upper right corner of the iTunes window. Or right-click the name of your iPad which shows in the left sidebar. Then choose the iPad backup you have created on this computer.
  3. iTunes will start restoring your iPhone. Sometimes it will need your Apple ID to start working.
1 Like
#3

Long dead thread, but I have a question that is not truly answered here: when the iphone is synced/backed up to itunes or the icloud, is the Codebook data included in the backup set? And just a point: saying “Apple has excellent instructions for restoring data” (when, frankly, they don’t) is a bit of a snarky comment to the perspective of someone who comes looking for a method to recover their database.

The issue that likely brings someone to this thread is that they restored an iphone backup only to find it restored Codebook, but not the data. This could be normal behavior, if Codebook data is not included in the set. My son just replaced his iPhone with one of the new ones. They restored from icloud, Codebook came back, but with no data. Unfortunately, he never availed himself of Codebook’s sync, nor had he synced his iphone to a PC. Only icloud, which is one of Apple’s horrid prison cells for data.

So, if the data set is not backed up when an iphone syncs to icloud or itunes, just tell me so that I can end this quest. Else, I have some avenues for retrieving that data from Apple’s evil clutches yet to explore…

Thanks!

#4

Hi @pbabcock,

Thanks for posting and sorry to hear about the missing data on your son’s iPhone. This does happen sometimes, where an iCloud Restore doesn’t completely restore all data for every app, or takes a long time restoring all the device’s data, a process that continues after the user has access to the device. So it’s possible to fire up Codebook and have no data there at first, and cause it to go into setup mode.

The fix should be really simple: perform an additional iCloud Restore on that device. It almost always resolves the problem, as iCloud Backup does backup data stored in apps.

Please let us know if that helps. We’ve provided that advice a lot over the years, but it seems to have been worked out of the documentation here. It probably should be a highlighted topic here or in a linked piece of documentation.

It is! My apologies that that isn’t clearer. We’ll look at amending the documentation in that regard.

Our apologies again, it’s not our intent to insult! We used to attempt to include all the different steps for restoring iPhones, iPads, and iPod Touch devices from either iTunes backups or iCloud backup, and to keep that documentation up-to-date, but we thought Apple did a better job of covering all the options and differences and wanted to provide the best directions possible. In the case of someone who is experiencing your issue, I agree it would be better to have the pertinent information available all in one place.

#5

Thanks for the follow-on. I’ve let him know that y’all believe redoing the restore is the best approach. The good bit: he now understands the importance of not relying on iCloud for backups - which is sound advice for anyone. Backing up your iThing to a pc gives you access to the files, and there are many pieces of software out in the wild that you can use to extract data from that backup. But on iCloud? Like I said: it’s one of Apple’s horrid prison cells for data…

And when your app has a facility to back up its own data? Use it!