Skip to main content

Backwork plug-in for Consul backups.

Project description

backwork-backup-consul

Adds support for Consul backups to backwork.

Requirements

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

If not, you can install the consul cli following the installation instructions.

Installing

You can use pip to install this plug-in:

$ pip install backwork-backup-consul

Using

After installing the plug-in you will be able to use the backup consul and restore consul commands on backwork.

backwork backup consul

$ backwork backup consul --help
usage: backwork backup consul [-h] [file]

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

positional arguments:
  file        output snapshot file name (optional)

optional arguments:
  -h, --help  show this help message and exit

You can pass any option that you would normally use on consul snapshot save, e.g.:

$ backwork backup consul -http-addr=http://127.0.0.1:8500

The only exception is -h which is reserved for the help/usage message.

backwork restore consul

$ backwork restore consul --help
usage: backwork restore consul [-h] file

Restore a Consul cluster. Restore a Consul cluster. It uses `consul` so it's required to have it installed and added to the system's PATH. You can use any of the arguments
supported by `consul snapshot restore`. Use `consul snapshot restore --help` for more information.

positional arguments:
  file        input snapshot file name

optional arguments:
  -h, --help  show this help message and exit

You can pass any option that you would normally use on consul snapshot restore, e.g.:

$ backwork restore consul --http-addr=http://127.0.0.1:8500

The only exception is -h which is reserved for the help/usage message.

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

backwork-backup-consul-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

backwork_backup_consul-0.1.0-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

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