Tool to backup docker volumes
Project description
porter
Table of Contents
Usage
"""Usage: porter --version porter backup --to=HOST [--exclude=TARGETS] [--include=INCLUDE] porter restore --from=HOST [--exclude=TARGETS] [--include=INCLUDE]
Options: --exclude=TARGETS Comma separated string of target names to exclude (default is to include all) --include=TARGETS Comma separated string of target names to include (default is to include all) """
<path>
is the path to a directory containing a porter.json
file. This file should contain at least one target
and at least one host. See ./config/porter.json
for an example. By default all targets in the config file are used,
but this can be overridden by explicitly including or excluding targets by name.
Test and lint
hatch run test
hatch run lint:fmt
To get coverage reported locally in the console, use hatch run cov
.
On CI, use hatch run cov-ci
to generate an xml report.
Installation
pip install porter
Install from local sources
hatch build
pip install dist/porter-{version}.tar.gz
Publish
Publish to PyPi
Ensure you have built a new version of the package:
hatch clean
hatch build
Then publish to the test server:
hatch publish -r test
You will be prompted to enter your test.pypi.org username and password. To test the installation, first run Python in a container:
docker run --rm -it --entrypoint bash python
Then:
pip install --index-url https://test.pypi.org/simple reside-porter --extra-index-url https://pypi.org/simple
Now you should be able to run porter
from the command line and see the usage instructions.
If it is working, you can publish to the real PyPi:
hatch publish
License
porter
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file reside_porter-0.0.1.tar.gz
.
File metadata
- Download URL: reside_porter-0.0.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 279be2d1860f3bc556e304e342a7c997c8f3659bad36aeb5e796f354ac235502 |
|
MD5 | 3c208511fc184ddacdcd436438ce2be2 |
|
BLAKE2b-256 | a60fe30cda34ee266d5fc3253aba9ed201ec1a15bbe7e26069d583b8f006caee |
File details
Details for the file reside_porter-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: reside_porter-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed1304fda09946a7e38cb00fca58d8cf357e9ae3bfda3207d46d3e950b236420 |
|
MD5 | 9ced929ff3580bd97d466938564451c1 |
|
BLAKE2b-256 | 1f7be3e9593c51f435ed16a316b66b2fe11b49a6017b936908e2aaa2a4bf17ce |