Sync & Backup

SnippetsLab offers two ways of sync – iCloud and third-party synchronisation.

iCloud Sync

To use iCloud sync, choose SnippetsLab > Preferences… and click Sync. If the status of “iCloud Sync” is “Disabled,” you can click Turn On to enable iCloud, otherwise click Turn Off to disable iCloud.

Enable iCloud for SnippetsLab

In order to use iCloud sync for SnippetsLab, you need to make sure that all of the following conditions are met:

  • You’ve turned on iCloud service and signed in with a valid Apple ID in OS X System Preferences
  • iCloud Drive is enabled
  • You havn’t disabled SnippetsLab from accessing the iCloud services (Open Apple Menu > System Preferences… > iCloud, and click on the Options… button next to “iCloud Drive.” Make sure that the checkbox next to SnippetsLab is selected.)
  • Your Mac have access to the Internet

If you have difficulity in setting up iCloud in OS X, please refer to the following Apple Support articles:

_images/icloud.png
  1. Choose SnippetsLab > Preferences… from the menubar, then click Sync.
  2. Click Turn On.
  3. If you already have some snippets stored locally before turning on iCloud, you’ll see a “Database conflict” alert dialog.
    • If you want to copy your current library to the iCloud, choose Use Local. This action will replace anything that’s already stored in the iCloud with the current library.
    • If you want to simply switch to the iCloud version without copying your current library, choose Use iCloud. If you choose this option, you still have access to your current library after turnning off iCloud.
    • If you want to cancel the operation, choose Cancel.

Disable iCloud for SnippetsLab

To disable iCloud sync, follow the steps below:

  1. Choose SnippetsLab > Preferences… from the menubar, then click Sync.
  2. Click Turn Off, then follow the onscreen instructions.

Warning

If you turn off iCloud, you’re asked whether you want to keep copies on your Mac of snippets stored in iCloud. If you keep copies, iCloud doesn’t keep them up to date with changes on your other devices using iCloud. If you choose not to keep copies, all your snippets stored in iCloud are removed from your Mac.

After turning off iCloud on your Mac, you can still access your iCloud snippets on your other devices with iCloud turned on. If you turn on iCloud sync for SnippetsLab, your iCloud snippets reappear on your Mac.

Third-party Sync

To use third-party file-based sync services like Dropbox or Google Drive, follow the step below:

  1. Choose SnippetsLab > Preferences… from the menubar, then click Sync.
  2. If iCloud sync is enabled, follow the instructions to turn it off.
    • Speficically, you might want to select Keep a copy of the snippets on this Mac to migrate your iCloud library.
  3. Click Move Library… to move your library to a folder that’s managed by your sync software.

Important

When using third-party sync services, SnippetsLab won’t automatically pickup changes of library. To reflect the latest library, you have to restart SnippetsLab.

Backups

SnippetsLab automaticlly backups your library on a daily basis when it is running. To manage or restore backups, choose SnippetsLab > Preferences… from the menubar and click Advanced.

  • Manually Create Backup: Click Backup Now.
  • Delete a Backup: Right click on a backup and choose Delete Backup.
  • Restore from a Backup: Choose a backup file and click Restore from Backup.
  • Configure Maximum Number of Backup Files Saved: Click and choose an item from the “Maximum backups for each library” dropdown menu.
_images/pref-backup.png