Skip to main content

Yaml interface for pgagent

Project description

pgagent-yaml - Yaml interface for pgagent

Export structure of pgagent jobs to yaml files
Sync yaml files to pgagent jobs

installation

pip install pgagent-yaml

usage

export jobs:

usage: pgagent_yaml export [--help] [-d DBNAME] [-h HOST] [-p PORT] [-U USER] [-W PASSWORD] --out-dir OUT_DIR [--clean]
                           [--ignore-version] [--include-schedule-start-end]

options:
  --help                show this help message and exit
  -d DBNAME, --dbname DBNAME
                        database name to connect to
  -h HOST, --host HOST  database server host or socket directory
  -p PORT, --port PORT  database server port
  -U USER, --user USER  database user name
  -W PASSWORD, --password PASSWORD
                        database user password
  --out-dir OUT_DIR     directory for exporting files
  --clean               clean out_dir if not empty (env variable PGAGENT_YAML_AUTOCLEAN=true)
  --ignore-version      try exporting an unsupported server version
  --include-schedule-start-end
                        include "start", "end" fields (without by default)

sync jobs:

usage: pgagent_yaml sync [--help] [-d DBNAME] [-h HOST] [-p PORT] [-U USER] [-W PASSWORD] --source SOURCE [--dry-run]
                         [--echo-queries] [-y] [--ignore-version]

options:
  --help                show this help message and exit
  -d DBNAME, --dbname DBNAME
                        database name to connect to
  -h HOST, --host HOST  database server host or socket directory
  -p PORT, --port PORT  database server port
  -U USER, --user USER  database user name
  -W PASSWORD, --password PASSWORD
                        database user password
  --source SOURCE       directory or file with jobs to sync to pgagent
  --dry-run             test run without real changes
  --echo-queries        echo commands sent to server
  -y, --yes             do not ask confirm
  --ignore-version      try exporting an unsupported server version

examples

$ pgagent_yaml export -d my_database -h 127.0.0.1 -p 5432 -U postgres --out-dir /tmp/jobs/
$ pgagent_yaml sync -d my_database -h 127.0.0.1 -p 5432 -U postgres --source /tmp/jobs/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgagent_yaml-0.1.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgagent_yaml-0.1.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file pgagent_yaml-0.1.1.tar.gz.

File metadata

  • Download URL: pgagent_yaml-0.1.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for pgagent_yaml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0c04d1a574bd3809e7ffab7fa8b27e6bbcd1fc0788b89178bd7645fa457335a8
MD5 65d359413dcfa8a2434e99c7bf30a196
BLAKE2b-256 21095d2ceda9465ff74c50bc46525f378c946c4741f6d4df9d3e7ad7b15a7059

See more details on using hashes here.

File details

Details for the file pgagent_yaml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pgagent_yaml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for pgagent_yaml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6057f9d3b908e3c19b0fd676aa728bdb64683ee24717e7c2e0bf2305aad2ff2
MD5 3f3fbe16ca6e2d2dc9921e399b21ef23
BLAKE2b-256 429bb8923d20f894991b9bbbe1cb748600a784b8c29840331c88044d45907c13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page