api_version: iobackup.io/v1
kind: BackupJob
metadata:
  job_id: filesystem-s3-env-streaming
  name: Filesystem to S3 streaming backup (endpoint/region via env)
spec:
  enabled: true
  operation:
    type: backup
  artifact:
    mode: stream
    staging:
      enabled: false
  tasks:
    - task_id: max-docker-files
      source:
        type: filesystem
        config:
          paths:
            - /add/tmp/max-docker
          include_hidden: true
          follow_symlinks: false
      backup:
        format: tar.gz
        compression: gzip
        checksum: sha256
      destination:
        type: s3
        config:
          endpoint_env: S3_ENDPOINT
          region_env: S3_REGION
          bucket: iobackup
          prefix: iobackup-tests/filesystem/max-docker-env
          access_key_env: S3_ACCESS_KEY
          secret_key_env: S3_SECRET_KEY
          force_path_style: true
