📦 hsbt — Hetzner Storage Box Tool
One scriptable CLI (and typed Python library) for Hetzner Storage Boxes — from first SSH key deployment to permanent system mounts.
✨ Highlights
- 🔌 4 mount backends —
rclone(recommended · why),sshfs,CIFS/SMB,WebDAV over HTTPS - ♻️ 3 persistence styles — fstab · systemd automount · autofs
- 🔑 Password-free after setup — deploys an SSH key once, then it's key-only forever
- 🔄 One-way & bidirectional sync via rclone
- 📤 SCP transfer & remote commands out of the box
- 🐍 Importable Python library — every operation is typed and reusable
🚀 Quick start
pip install hsbt
# Save a connection (prompts for your password once to deploy an SSH key)
hsbt set-connection -i mybox -h u000001.your-storagebox.de -u u000001
# Mount it (default backend: rclone)
hsbt mount -i mybox --mount-point /mnt/mybox
# Make it survive reboots
sudo hsbt mount-perm -i mybox --mount-point /mnt/mybox
# Sync the whole box to a local directory
hsbt sync -i mybox --local-dir ~/backup/mybox
After the first
set-connectionthe password is never needed again. With only one saved connection,-i myboxis optional everywhere.
🧰 Commands
| Command | Does |
|---|---|
set-connection · list-connections · repair-connection · delete-connection |
Manage saved named connections |
mount · mount-perm · unmount |
Temporary and reboot-persistent mounts |
sync |
One-way or bidirectional sync via rclone |
upload · download · available-space |
File transfer & disk usage |
Run hsbt --help or hsbt <command> --help for every option.
📥 Installation
pip install hsbt # from PyPI
pdm add hsbt # or with PDM
System dependencies (Debian/Ubuntu — install only what you use):
apt install openssh-client sshpass # always needed
apt install rclone # --mount-tool rclone / webdav / sync
apt install sshfs # --mount-tool sshfs
apt install cifs-utils # --mount-tool cifs
apt install autofs # --mount-style autofs
Requires Python 3.14+. After install, hsbt is on your PATH.
💡 More examples
# Mount via HTTPS WebDAV (when SSH/SMB ports are blocked)
hsbt mount -i mybox --mount-point /mnt/mybox --mount-tool webdav --webdav-password secret
# On-demand mount, auto-disconnect after inactivity
sudo hsbt mount-perm -i mybox --mount-point /mnt/mybox --mount-style systemd-automount
# Bidirectional sync (keeps both sides in step)
hsbt sync -i mybox --local-dir ~/mybox-mirror --mode bisync
📚 Documentation
| Document | Audience |
|---|---|
| User Guide | Every command, option, and environment variable |
| Mount Backends | Choosing sshfs / rclone / CIFS / WebDAV, per-backend setup |
| Python API | Using hsbt as a library |
| Development Guide | Architecture, adding commands/backends, contributing |
| Testing Guide | Unit tests, integration tests, CI setup |
⚙️ How it works
hsbt stores named connections in a JSON config file (default ~/.config/hetzner_sbt_connections.json),
each holding a hostname, username, and SSH keypair path. The first set-connection prompts for your
password and deploys your public key via ssh-copy-id; from then on every operation is key-only and the
password is never stored.
📄 License
MIT © Tim Bleimehl
Metadata
Release files for hsbt 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hsbt-0.2.8.tar.gz | 63.4 kB | Without provenance | Details for hsbt-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hsbt-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for hsbt-0.2.8-py3-none-any.whl |
Total release size: 106.3 kB
Release files / hsbt-0.2.8.tar.gz
| Download URL | hsbt-0.2.8.tar.gz |
|---|---|
| Size | 63.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be5386e8bd067b58511db9ffaf87177b9fd88365c11d46a26610135fd93c38e4
|
|
BLAKE2b-256 checksum How to use checksums |
85caeadd6da8c1247f1f2b9fc7b09b966650eec415a0e8c7dbb35db36f8b752f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.29.0 CPython/3.14.7 Linux/6.17.0-1022-azure
|
Release files / hsbt-0.2.8-py3-none-any.whl
| Download URL | hsbt-0.2.8-py3-none-any.whl |
|---|---|
| Size | 43.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fa4b6cf1fa51d0bde8b62b5cd204afeb22b4b5ed0fc10e67c58f3b40fcb6f38
|
|
BLAKE2b-256 checksum How to use checksums |
4953552d6f5f9036d05481718784ed222ee6a82254e9795db1ca5f615b0c520f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.29.0 CPython/3.14.7 Linux/6.17.0-1022-azure
|
Security for hsbt 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.