api_version: iobackup.io/v1
kind: BackupJob
metadata:
  job_id: filesystem-s3-aws-docker-fallback
  name: Filesystem to S3 using docker aws-cli fallback
spec:
  enabled: true
  operation:
    type: backup
  policies:
    verify:
      after_run: true
      limit_per_task: 1
  artifact:
    mode: stream
    staging:
      enabled: false
  tasks:
    - task_id: max-docker-files
      source:
        type: filesystem
        config:
          paths:
            - /add/www
          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/aws-docker-fallback
          access_key_env: S3_ACCESS_KEY
          secret_key_env: S3_SECRET_KEY
          force_path_style: true
          upload:
            runner:
              mode: docker
              docker:
                image: amazon/aws-cli:latest
