api_version: iobackup.io/v1
kind: BackupJob

metadata:
  job_id: filesystem-local
  name: Filesystem Local Backup
  labels:
    environment: production

spec:
  enabled: true
  operation:
    type: backup
    strategy: full
  repository:
    type: single_artifact
    engine: iobackup
  logging:
    include_source_paths: false
    path_redaction: basename
  data:
    classification: internal
    contains_pii: false
    log_sensitivity: normal
  execution:
    mode: sequential
    fail_fast: true
  artifact:
    mode: auto
    staging:
      enabled: false
  tasks:
    - task_id: app-files
      source:
        type: filesystem
        config:
          paths:
            - /etc
          include_hidden: true
          follow_symlinks: false
      backup:
        format: tar.gz
        compression: gzip
        checksum: sha256
      destination:
        type: local
        config:
          path: /tmp/backups
        write_policy:
          on_conflict: fail
      policies:
        retention:
          keep_last_days: 14
