SkillAgentSearch skills...

Resticpy

Minimal Python wrapper around the restic backup command-line interface.

Install / Use

/learn @mtlynch/Resticpy
About this skill

Quality Score

0/100

Supported Platforms

Universal

Tags

README

resticpy

PyPI CircleCI Coverage Status License

Overview

Minimal Python wrapper around the restic backup command-line interface.

Installation

From pip

pip install resticpy

From source

git clone https://github.com/mtlynch/resticpy.git
cd resticpy
pip install .

Quick start

Create a password file

printf "mysecretpass" > password.txt

Initialize a repository and back up a file

import restic

restic.repository = '/tmp/backup1'
restic.password_file = 'password.txt'

restic.init()
restic.backup(paths=['some-file.txt'])

Restore a snapshot

import restic

restic.repository = '/tmp/backup1'
restic.password_file = 'password.txt'

restic.restore(snapshot_id='latest', target_dir='~/restored')

API Documentation

https://mtlynch.github.io/resticpy/

Example

I personally use this library for my backups. I've published my backup script at mtlynch/mtlynch-backup.

Compatibility

resticpy is tested against restic 0.18.1.

resticpy's scope and future

resticpy is maintained by Michael Lynch as a hobby project.

resticpy is not meant to achieve feature parity with restic. It is meant to cover a small subset of the most useful features of restic.

Due to time limitations, I keep resticpy's scope limited to only the features that fit into my workflows.

I no longer accept pull requests or bug reports for resticpy. If you are interested in forking resticpy into a more actively maintained project, find my email and let me know about it.

Acknowledgments

This project is forked from jstzwj/PyRestic.

View on GitHub
GitHub Stars73
CategoryDevelopment
Updated13h ago
Forks25

Languages

Python

Security Score

95/100

Audited on Apr 6, 2026

No findings