Metadata

public struct Metadata

A type representing backup metadata.

  • The name of the file in which the backup was originally stored on export. The app uses a naming convention that includes the date and time at which the backup was created: hl<date>@<time>.bak.

    Declaration

    Swift

    public let filename: String
  • The value stored in the backup against the hash key. Observed to be unique for every backup and presumably used to verify integrity on restore.

    Declaration

    Swift

    public let hash: Int
  • The value stored in the backup against the purged key. Purpose unknown.

    Declaration

    Swift

    public let purged: Bool
  • The value stored in the backup against the restore key. Purpose unknown.

    Declaration

    Swift

    public let restore: [Int]
  • The value stored in the backup against the version key. Presumably indicates the data format of the backup, perhaps for a compatibility check on restore.

    Declaration

    Swift

    public let version: Int