Skip to main content

backwork-backup-postgresql Build Status PyPI version

Add support for PostgreSQL backups on backwork.

Requirements

This plug-in is build on top of pg_dump, so you will need to it installed.

pg_dump is part of the postgresql client.

Installing

You can use pip to install this plug-in:

$ pip install backwork-backup-postgresql

Using

After installing the plug-in you will be able to use the backup mysql command on backwork.

backwork backup postgresql -h
usage: backwork backup postgresql [-h] [--gzip] [-o OUTPUT] -P PASSWORD

Backup a PostgreSQL database. It uses `pg_dump` so it's required to have it
installed and added to the system's PATH. You can use any of the arguments
supported by `pg_dump`. Use `pg_dump --help` for more information.

optional arguments:
  -h, --help            show this help message and exit
  --gzip                compress output file (requires gzip to be installed)
  -o OUTPUT, --output OUTPUT
                        output file path
  -P PASSWORD, --password PASSWORD
                        PostgreSQL connection password

You can pass any option that you would normally use on mysqldump:

$ backwork backup postgresql -P password --host=192.168.99.1 --username=root --port=32769 --dbname=MY_DATABASE

As shown in the --help message, there are two extra arguments you can use in your backup process --gzip and -o.

--gzip will compress the output and requires the gzip command to be available in your system.

-o OUTPUT or --output OUTPUT will save the output of pg_dump into a file.

Important: There is a conflict with the -h argument since it is reserved for the help/usage message. User --host to pass the hostname.

Metadata

Release files for backwork-backup-postgresql 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backwork-backup-postgresql 0.2.2
File Size Uploaded
backwork-backup-postgresql-0.2.2.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backwork-backup-postgresql 0.2.2
File Interpreter ABI Platform
backwork_backup_postgresql-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / backwork-backup-postgresql-0.2.2.tar.gz

Download URL backwork-backup-postgresql-0.2.2.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dd7433e349f09d2e3c1b46b5071de333a7f3f865be2ea93e65991c2f9244c9b2
BLAKE2b-256 checksum
How to use checksums
19b29f33fe6972b3efbdec5594c61c4f63dd90545150b603e6b6c26e26f64a8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / backwork_backup_postgresql-0.2.2-py3-none-any.whl

Download URL backwork_backup_postgresql-0.2.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
694ecdd0516332c5115e429f4008fc86f76b50fd0358fbf3f5af09dd5766b6ba
BLAKE2b-256 checksum
How to use checksums
b1920437889f55fe9caf21f6471661a3cc99ea00f5432b4c8ba14dce268fc71c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

1 release file

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page