Hi All,
As an excuse to sharpen my programming skills, I took my personal “restic copy” wrapper script and fleshed it out into something more general purpose.
restic-replica is essentially “yet another restic wrapper”, written in python, although one focused specifically on a single operation; restic copy.
There is no functionality to perform other restic operations like backup, forget, etc.
The main feature on offer (and the reason I wrote it) is that it can optionally filter the list of snapshots to be copied, using the same paradigm of “keep-daily, keep-weekly, etc.” as restic forget.
If you have a high change rate dataset, this could cut down on the amount of storage needed for the repository the snapshots are being copied to.
An example of a use case this solves is: “I take snapshots daily, and I want to copy the monthly snapshots to a second repository for longer term storage”.
Configuration is performed via a TOML file, which defines the repositories, the policy (snapshot filtering), etc.
Download/Install
The easiest way is via pip:
pip install restic-replica
There is a readme with more details about usage on my github, and the project can also be found on pypi.
I hope you find it useful ![]()
Cheers!