def shortcuts_backup_path(directory, user, timestamp_format="%Y%m%d%H%M%S"):
  """
  Returns the path for a shortcuts.vdf backup file.

  This path is in the designated backup directory, and includes a timestamp
  before the extension to allow many backups to exist at once.
  """
  assert(directory is not None)
  return os.path.join(
      directory,
      str(user.user_id),
      backup_filename(user, timestamp_format)
  )