Skip to main content

ini config for borg backup

Project description

build python3.8 pypi codecov.io readthedocs.org mit black

A wrapper to quickly get you started backing up with borg

An easy to use ini style and profile based format

Requires:

  • Python 3 >= 3.5.0, plus development headers

  • OpenSSL >= 1.0.0, plus development headers

  • libacl (which depends on libattr), both plus development headers

  • liblz4 >= 1.7.0 (r129)

  • libzstd >= 1.3.0

  • libb2

For information on how to install these dependencies for Borg: https://borgbackup.readthedocs.io/en/stable/installation.html

Initialize the config

$ borgini
First run detected for profile: default
Make all necessary changes to config before running this again
You can do this by running the command:

. borgini EDITOR --config --select default

Default settings have been written to the ``include`` and ``exclude`` lists
These can be edited by running:

. borgini EDITOR --include --select default
. borgini EDITOR --exclude --select default

Edit the config

$ borgini vim --config
$ borgini code --config
$ borgini gedit --config
$ borgini notepad --config

Ensure to make necessary changes to the DEFAULT section

And ensure to configure the SSH section if an ssh repo is configured

The remaining configurations will suite most people

If you use the BORG_PASSPHRASE environment variable edit the ENVIRONMENT section to point to the keyfile

Edit the include and exclude files

$ borgini vim --include  # add a list of paths to back up
$ borgini vim --exclude  # add a list of paths to exclude

To switch between profiles add --select PROFILE

$ borgini vim --config  # edit default config
$ borgini vim --config --select profile2  # edit profile2's config
$ borgini vim --include --select profile2  # edit profile2's include file
$ borgini vim --exclude --select profile2  # edit profile2's exclude file
$ borgini --select profile2  # run profile2's backup

Add the following for nightly backups at 12:00 to your crontab

$ 0 0 * * * /usr/local/bin/borgini
$ 0 0 * * * /usr/local/bin/borgini -s profile2  # easy for multiple repos

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

borgini-1.0.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

borgini-1.0.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file borgini-1.0.0.tar.gz.

File metadata

  • Download URL: borgini-1.0.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for borgini-1.0.0.tar.gz
Algorithm Hash digest
SHA256 74bf8270dcc311698de72d76b5483f5b3f8b5be30aebd5f3dd6f2b937b36d272
MD5 942aceb8908fed1d437e385891b4b09d
BLAKE2b-256 94aabc24ef14be01742c8357d98395e29d8a11107599725ecc43108f3647a551

See more details on using hashes here.

File details

Details for the file borgini-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: borgini-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for borgini-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20ec45dd218b3c0c9b7d04737e893815d99770bfbc3c41d44ede3ec41d91f852
MD5 0d0d6cb1a15d120d77c485482aa71824
BLAKE2b-256 7ea162e46c230f270e2d8744658ebd1529852f8eb8de9d5e96e517d76f185213

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