Skip to main content

resticbackups3 (rbs3)

A command-line tool that turns restic and S3-compatible storage (Cloudflare R2 first) into "init once, then back up from cron":

rbs3 init <profile>
rbs3 backup <profile> --mail
rbs3 cronjob <profile> "0 4 * * *" --mail --silent

Status: early development. rbs3 init saves a profile; backups come next.

Create a profile

rbs3 init <profile> --env-file creds.env --config settings.toml

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.

Key Required
RESTIC_REPOSITORY yes, s3:https://<account>.r2.cloudflarestorage.com/<bucket>[/<prefix>]
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, RESTIC_PASSWORD yes
AWS_DEFAULT_REGION no, default auto
SMTP_SERVER no; empty means no email reports
SMTP_PORT, SMTP_SECURITY (starttls/ssl) defaults 587 / starttls
SMTP_USER, SMTP_PASSWORD, MAIL_TO when SMTP_SERVER is set
MAIL_FROM no, default SMTP_USER

Without --config, the settings are asked for one by one. The profile is saved as /etc/resticbackups3/<profile>/.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.

Install

Needs Linux, Python 3.12 or newer, and restic 0.16 or newer.

Tool Install Update
pipx pipx install resticbackups3 pipx upgrade resticbackups3
uv uv tool install resticbackups3 uv tool upgrade resticbackups3
pip (in a venv) pip install resticbackups3 pip install --upgrade resticbackups3

Run rbs3 as your normal user; it asks for sudo itself when it needs it.

Development

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" ruff mypy
git config core.hooksPath .githooks   # blocks commits containing strings from notes/deny-list.txt
ruff check . && ruff format --check . && mypy && pytest -n auto

Pull request titles follow Conventional Commits; a merged feat: or fix: publishes a release.

License

MIT

Metadata

Release files for resticbackups3 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resticbackups3 0.1.0
File Size Uploaded Provenance Actions
resticbackups3-0.1.0.tar.gz 28.4 kB With provenance Details for resticbackups3-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resticbackups3 0.1.0
File Interpreter ABI Platform Actions
resticbackups3-0.1.0-py3-none-any.whl Python 3 none any Details for resticbackups3-0.1.0-py3-none-any.whl

Total release size: 62.5 kB

Release files / resticbackups3-0.1.0.tar.gz

Download URL resticbackups3-0.1.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9965d7c1c54b50e887b1da87123104eeea17f87e96be8587773577984b682493
BLAKE2b-256 checksum
How to use checksums
3716d063c1c2c9e67f7e93f76f0c65432c7de9f77782bf37e15f3e02d3240851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

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.

Transparency log

Release files / resticbackups3-0.1.0-py3-none-any.whl

Download URL resticbackups3-0.1.0-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c9acb1996f8010be7bc2ac3861c56b8929cb129787d05c77b5ef7469eb30fd6
BLAKE2b-256 checksum
How to use checksums
aacf05b6f773e41f1165d7ba67fda5231803b97103dd26c5137465ef62ebc1a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

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.

Transparency log

Security for resticbackups3 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for resticbackups3-0.1.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.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page