api_version: iobackup.io/v1
kind: BackupJob
metadata:
  job_id: filesystem-s3-streaming
  name: Filesystem max-docker to S3 streaming backup
spec:
  enabled: true
  operation:
    type: backup
    strategy: full
  repository:
    type: single_artifact
    engine: iobackup
  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: https://s3.twcstorage.ru
          region: ru-1
          bucket: iobackup
          prefix: iobackup-tests/filesystem/max-docker
          access_key_env: S3_ACCESS_KEY
          secret_key_env: S3_SECRET_KEY
          force_path_style: true
          storage_class: STANDARD
          multipart:
            enabled: true
            part_size: 67108864
            concurrency: 4
        write_policy:
          on_conflict: fail
