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
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.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c154a858523d89edc2ce69ec7661a4bf02e19c26ba4ca7afbbf4dc57674d30 |
|
MD5 | a2a147132809cf14149207809011dee9 |
|
BLAKE2b-256 | 174930799c21fc3aca47a6f569190ed46030f5b70d0ad3a954791a48ba8824b4 |