postgres-local.yaml

← Все примеры | Сырой YAML (скачать/открыть)
# Canonical name variant of `postgres.local.yaml` (same shape; job_id slug postgres-local).
api_version: iobackup.io/v1
kind: BackupJob
metadata:
  job_id: postgres-local
  name: Postgres local streaming backup
spec:
  enabled: true
  operation:
    type: backup
  artifact:
    mode: stream
    staging:
      enabled: false
  tasks:
    - task_id: postgres-main
      source:
        type: postgres
        config:
          host: 127.0.0.1
          port: 5433
          username: iobackup
          password_env: POSTGRES_BACKUP_PASSWORD
          databases:
            - iobackup_test
          dump:
            tool: pg_dump
            format: custom
            jobs: 1
            clean: false
            if_exists: true
      destination:
        type: local
        config:
          path: /add/tmp/backups