restic-profile
English | 简体中文
Profile-based restic wrapper, deployed with Ansible.
This repository is an Ansible collection (ak1ra_lab.restic_profile) that
installs and configures the restic-profile CLI on local or remote hosts:
- restic-profile CLI - reads a TOML config and runs
restic backup/forget/prunewith hooks and IM notifications. - restic_profile role - deploys the CLI, renders the TOML config, and
manages one systemd timer per profile (including user-level
systemd_scope: user). - restic_rest_server role - deploys a rest-server instance for remote backup storage.
Deploy with Ansible
You need Ansible on the control node - see Ansible toolchain for a uv-based setup. Clone the repo and install this collection with its dependencies into the project-local tree:
git clone https://github.com/ak1ra-lab/restic-profile.git
cd restic-profile
ansible-galaxy collection install --collections-path .ansible/collections -r requirements.yaml
ansible-galaxy collection install --force --collections-path .ansible/collections .
Then pick an example from Ansible examples,
fill in your host_vars, and run the playbook. Building restic from source
(restic_profile_restic_install_source: go_build) also needs a go toolchain on
the control node.
Development
Only needed to work on src/restic_profile or the roles and plugins:
uv sync --group dev
just lint
just typecheck
just test
ansible-lint
To develop ak1ra_lab.general alongside this repo, clone
ansible-collection-general next to this checkout and run
just ansible-collection-install - it installs this collection plus your local
../ansible-collection-general (skipping ansible.posix/community.general,
which come from your user-level Ansible).
Documentation
https://ak1ra-lab.github.io/restic-profile/ - configuration lives in mkdocs.yml.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file restic_profile_cli-0.4.0.tar.gz.
File metadata
- Download URL: restic_profile_cli-0.4.0.tar.gz
- Upload date:
- Size: 162.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f361a32edcca98662837ee9346d2375db5c176c9760ccb38fe49663b812043
|
|
| MD5 |
53d049d839c7cf261461bd0ba324e24f
|
|
| BLAKE2b-256 |
95b25a55e5f81b8fe875655070b32623145ec0193ce37f0953971fc425d489eb
|
Provenance
The following attestation bundles were made for restic_profile_cli-0.4.0.tar.gz:
Publisher:
publish-to-pypi.yaml on ak1ra-lab/restic-profile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restic_profile_cli-0.4.0.tar.gz -
Subject digest:
06f361a32edcca98662837ee9346d2375db5c176c9760ccb38fe49663b812043 - Sigstore transparency entry: 2419421857
- Sigstore integration time:
-
Permalink:
ak1ra-lab/restic-profile@5c6905f4858de2537249471652b94f40b4e683c0 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/ak1ra-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@5c6905f4858de2537249471652b94f40b4e683c0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file restic_profile_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: restic_profile_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
894e3ecfa11fa88f52517e67b3a2020ea8558f5720506344a5dbc27bc85cfc29
|
|
| MD5 |
59039e9c0a7886aaef86e7c659728e7e
|
|
| BLAKE2b-256 |
cb6c9004e5fa8a52a473ca463fa4cf9c39fb9525da47f1201b1fab9c4d6e4423
|
Provenance
The following attestation bundles were made for restic_profile_cli-0.4.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yaml on ak1ra-lab/restic-profile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restic_profile_cli-0.4.0-py3-none-any.whl -
Subject digest:
894e3ecfa11fa88f52517e67b3a2020ea8558f5720506344a5dbc27bc85cfc29 - Sigstore transparency entry: 2419421949
- Sigstore integration time:
-
Permalink:
ak1ra-lab/restic-profile@5c6905f4858de2537249471652b94f40b4e683c0 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/ak1ra-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@5c6905f4858de2537249471652b94f40b4e683c0 -
Trigger Event:
push
-
Statement type: