restic + S3-compatible storage (Cloudflare R2 first): init once, then back up from cron
pip install resticbackups3==0.2.0
A command-line tool that turns restic and S3-compatible storage (Cloudflare R2 first) into "init once, then back up from cron":
Status: early development. rbs3 init checks and saves a profile; backups come .
Credentials can come from an env file ( --env-file ), this shell's environment ( --env-var ), flags ( --restic-password=… ) or prompts. They combine, with flags first, then the env file, then the environment, and anything still missing is asked for. Prefer the env file or the prompts: secrets given as flags end up in shell history.
Before saving, init checks everything it can and prints ✔ or ✖ with a reason for each:
restic is installed and 0.16 or newer (if not, it prints the install command for your distro);
the S3 keys can list, write and delete in the bucket (an R2 token with an IP allow-list is named as such, with this machine's public IP);
the repository exists and the password opens it, or, if there is none yet, it offers to create one ( --yes creates it without asking);
the SMTP login works, if email is configured, and it can send a test email.
If a check fails, nothing is saved unless you answer "save anyway" at the prompt.
Without --config , the settings are asked for one by one. The profile is saved as /etc/resticbackups3/ /.env (root only, 0600) and config.toml (0644). After that you may delete your own copies, but keep RESTIC_PASSWORD in a password manager: without it no backup can be restored.
Needs Linux, Python 3.12 or newer, and restic 0.16 or newer.
Run rbs3 as your normal user; it asks for sudo itself when it needs it.
tests/test_integration.py runs the checks against a real restic and S3 endpoint when RBS3_IT_ENDPOINT , RBS3_IT_BUCKET , RBS3_IT_KEY and RBS3_IT_SECRET are set. CI starts Versity Gateway for it.
Pull request titles follow Conventional Commits ; a merged feat: or fix: publishes a release.
Release files for resticbackups3 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 105.2 kB
Release files / resticbackups3-0.2.0.tar.gz
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Release files / resticbackups3-0.2.0-py3-none-any.whl
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Security for resticbackups3 0.2.0
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.
Both files in this release have been uploaded with provenance metadata.
Attestation for resticbackups3-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Attestation for resticbackups3-0.2.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
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.
Release history Release notifications | RSS feed
Nov 30, 2026 2 release files Full provenance
Nov 30, 2026 2 release files Full provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
