# FUTURE / NOT IN validate-examples — sketches under examples/future/ are not scanned by
# `make validate-examples`. Safe command hooks (`spec.runtime_hooks` / `task.runtime_hooks`)
# ship from v0.41+ behind `features.hooks: true` (default false); see `docs/features/hooks/hooks.md`.
# This file illustrates extended patterns; prefer root `examples/*.yaml` for copy-paste jobs.

api_version: iobackup.io/v1
kind: BackupJob
metadata:
  job_id: future-hooks
  name: Future hooks example (do not run)
  labels:
    example.iobackup.io/kind: future
spec:
  enabled: false
  operation:
    type: backup
  tasks:
    - task_id: t1
      hooks:
        before:
          - echo would-run-hook
      source:
        type: filesystem
        config:
          paths:
            - /var/tmp/iobackup-future-placeholder
      destination:
        type: local
        config:
          path: /var/tmp/iobackup-future-artifacts
