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.0.tar.gz
(11.2 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.0.tar.gz.
File metadata
- Download URL: pgagent_yaml-0.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7d69f912d58374bb7a06c1b57b7322d46885b382b0ab5fda28c178400567f2c
|
|
| MD5 |
be25621e00d84781b0131bff1c209cb4
|
|
| BLAKE2b-256 |
e974bb86cc67ccb28b6e06cf9fd13871bf15a7b4e312bfa400597a8147cd0706
|
File details
Details for the file pgagent_yaml-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pgagent_yaml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 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 |
71abeb2993e76375ebc3cf4bd57663cb40b34d75e68eabec244e143513c588d8
|
|
| MD5 |
548a251d4e3ea9bece8ccd1f89695c1e
|
|
| BLAKE2b-256 |
564f9151ead67c15ad043b38866e382dbea4062b0285264a4f4ef9fcf64ae6c0
|