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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c04d1a574bd3809e7ffab7fa8b27e6bbcd1fc0788b89178bd7645fa457335a8
|
|
| MD5 |
65d359413dcfa8a2434e99c7bf30a196
|
|
| BLAKE2b-256 |
21095d2ceda9465ff74c50bc46525f378c946c4741f6d4df9d3e7ad7b15a7059
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6057f9d3b908e3c19b0fd676aa728bdb64683ee24717e7c2e0bf2305aad2ff2
|
|
| MD5 |
3f3fbe16ca6e2d2dc9921e399b21ef23
|
|
| BLAKE2b-256 |
429bb8923d20f894991b9bbbe1cb748600a784b8c29840331c88044d45907c13
|