Skip to content
Resticbackups3

Resticbackups3

github.com • November 30, 2026

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.

Extracted Entities

Companies (1)

Platforms (2)

Vulnerabilities (1)