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
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
Close
Hashes for python3-cyberfusion-borg-support-1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d77a7fdad41b9f67c1a78dd6fc2de5ec6ec5fbe19a6dff43e3acdf132b8abf3 |
|
MD5 | 692dbcb5558bfa8e0876e8b388f9f1ef |
|
BLAKE2b-256 | 8486384145d56456a3cfa0a04004f21f3d93c7b087fb08b2ffec2ee28eb79bb3 |