Skip to main content

Library for Borg.

Project description

python3-cyberfusion-borg-support

Library for Borg.

Install

Generic

Run the following command to create a source distribution:

python3 setup.py sdist

Next, install Borg according to the documentation.

Debian

Run the following commands to build a Debian package:

mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc

PyPI

Run the following command to install the package from PyPI:

pip3 install python3-cyberfusion-borg-support

Next, install Borg according to the documentation.

Configure

No configuration is supported.

Usage

Example

import os

from cyberfusion.BorgSupport.repositories import Repository
from cyberfusion.BorgSupport.archives import Archive

repository = Repository(path="/home/example/repository", passphrase="test", identity_file_path=None, create_if_not_exists=True)
archive = Archive(repository=repository, name="example", comment="Example")

Tests

Run tests with pytest:

pytest tests/

The tests must be run from the project root.

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

File details

Details for the file python3-cyberfusion-borg-support-1.5.3.tar.gz.

File metadata

File hashes

Hashes for python3-cyberfusion-borg-support-1.5.3.tar.gz
Algorithm Hash digest
SHA256 93db3388cac2b8f9bb2cea3028119fae0067fe5ee7043a44d163d55c6960f8ab
MD5 2794646f3b6a9987555aa599cd7d237b
BLAKE2b-256 c7d20a8209b97993da9d2aa7196a80205c4e8feb9688b4244329cf042bb5689b

See more details on using hashes here.

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