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

Configure

No configuration is supported.

Usage

Example

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

repository = Repository(path="/home/example/repository", passphrase_file="/home/example/.passphrase.txt", identity_file_path="/home/example/.ssh/id_rsa", create_if_not_exists=True)
archive = Archive(repository=repository, name="example", comment="Example", working_directory=os.path.sep, remove_paths_if_file=True)

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

python3-cyberfusion-borg-support-1.4.1.tar.gz (15.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: python3-cyberfusion-borg-support-1.4.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for python3-cyberfusion-borg-support-1.4.1.tar.gz
Algorithm Hash digest
SHA256 03c154a858523d89edc2ce69ec7661a4bf02e19c26ba4ca7afbbf4dc57674d30
MD5 a2a147132809cf14149207809011dee9
BLAKE2b-256 174930799c21fc3aca47a6f569190ed46030f5b70d0ad3a954791a48ba8824b4

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