github.com/minio/madmin-go/v2@v2.2.1/examples/job.yaml.template (about) 1 replicate: 2 apiVersion: v1 3 # source of the objects to be replicated 4 source: 5 type: TYPE # valid values are "minio" 6 bucket: BUCKET 7 prefix: PREFIX 8 # NOTE: if source is remote then target must be "local" 9 # endpoint: ENDPOINT 10 # credentials: 11 # accessKey: ACCESS-KEY 12 # secretKey: SECRET-KEY 13 # sessionToken: SESSION-TOKEN # Available when rotating credentials are used 14 15 # target where the objects must be replicated 16 target: 17 type: TYPE # valid values are "minio" 18 bucket: BUCKET 19 prefix: PREFIX 20 # NOTE: if target is remote then source must be "local" 21 # endpoint: ENDPOINT 22 # credentials: 23 # accessKey: ACCESS-KEY 24 # secretKey: SECRET-KEY 25 # sessionToken: SESSION-TOKEN # Available when rotating credentials are used 26 27 # optional flags based filtering criteria 28 # for all source objects 29 flags: 30 filter: 31 newerThan: "7d" # match objects newer than this value (e.g. 7d10h31s) 32 olderThan: "7d" # match objects older than this value (e.g. 7d10h31s) 33 createdAfter: "date" # match objects created after "date" 34 createdBefore: "date" # match objects created before "date" 35 36 ## NOTE: tags are not supported when "source" is remote. 37 # tags: 38 # - key: "name" 39 # value: "pick*" # match objects with tag 'name', with all values starting with 'pick' 40 41 ## NOTE: metadata filter not supported when "source" is non MinIO. 42 # metadata: 43 # - key: "content-type" 44 # value: "image/*" # match objects with 'content-type', with all values starting with 'image/' 45 46 notify: 47 endpoint: "https://notify.endpoint" # notification endpoint to receive job status events 48 token: "Bearer xxxxx" # optional authentication token for the notification endpoint 49 50 retry: 51 attempts: 10 # number of retries for the job before giving up 52 delay: "500ms" # least amount of delay between each retry 53