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.2.0.tar.gz
(12.4 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.2.0.tar.gz.
File metadata
- Download URL: pgagent_yaml-0.2.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
819ef0ac7ded15ccd26ede21f3a95787abf5a440e15ea3a5ce3d05185c934079
|
|
| MD5 |
f9085a0122abe7e0d016cfd4187fb635
|
|
| BLAKE2b-256 |
cefca8a93648cd690e261a44a3ddb8cf785b771c68e8b0e62d323e70189a9f7b
|
File details
Details for the file pgagent_yaml-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pgagent_yaml-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.6 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 |
52f6fe6d9e3ec1b8d4f0e0c16749487d59a5b03bee53d0735aa6223a2bd6ba06
|
|
| MD5 |
df238b7a5ad9e72f1e7a0b2042eb9f1d
|
|
| BLAKE2b-256 |
80e582c985aa4c290cd014fc4942cba25647a57a117c544a5463971ce509f8a2
|