Skip to main content

bolthole

Project description

bolthole

(computer)% bolthole source_dir [dest_dir]

Automatically backup a directory to git — watch a directory for changes, and either commit the changes or mirror the directory to another that is a git repository, and commit changes there.

There is a grace period to allow multiple edits in a short space of time, and multiple files changed within the grace period should be packaged as one commit, not many.

Outstanding

  • watch source directory for file changes
  • collapse redundant events (create+delete, rename chains)
  • verbose and debugging output
  • sync existing files on startup
  • mirror changes to destination directory
  • dry run mode
  • create new repo if destination does not exist
  • show git commands being executed
  • override commit author
  • override commit message
  • commit changes to git
  • ignore files matching glob patterns
  • respect .gitignore
  • commit and exit without watching
  • push commits to remote
  • wait before committing to allow more edits
  • bundle multiple file changes into single commits

Testing

# run all tests
(computer)% make test

# run subsets
(computer)% make lint
(computer)% make pytest
(computer)% make bats

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

bolthole-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bolthole-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file bolthole-0.0.1.tar.gz.

File metadata

  • Download URL: bolthole-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bolthole-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dd64eefd2f22cf1b461167d0d9186164249e74bc6663ad50f418f6815b6d392b
MD5 19d2d4c287eb7fa89fd21eb8194d5892
BLAKE2b-256 68d3aea6d031638476242c4317e75956cc956723b93efdb836a808312f3d5a0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bolthole-0.0.1.tar.gz:

Publisher: publish.yml on norm/bolthole

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bolthole-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bolthole-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bolthole-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57cd6e46421aeaa44ae85c1b42a6a8c1508ca8e15f9bce8700edc7e344ac49a1
MD5 707b75a1c399dfc17f7f2d3802608772
BLAKE2b-256 a98c7ff3126555308cbad994f57dcd56519840ff287bbd168114caed149821e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for bolthole-0.0.1-py3-none-any.whl:

Publisher: publish.yml on norm/bolthole

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page