Skip to content

724 - Backup Strategy

Backup schedule and retention policy. This is an example of a MAML document.

maml
{
  source: {
    type: "filesystem"
    host: "localhost"
    databases: [
      "scenario"
      "lay"
    ]
  }

  # Backup schedule
  schedule: {
    full: "0 2 * * 0" # weekly Sunday 2am
    incremental: "0 2 * * 1-6" # daily except Sunday
    snapshot: "0 */4 * * *" # every 4 hours
  }

  retention: {
    daily: 12
    weekly: 11
    monthly: 12
  }

  destination: {
    type: "gcs"
    path: "/mnt/backups/diversity"
    encryption: true
    compression: "gzip"
  }
}

See Also