Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juergenhoetzel/pyrrhic
Restic implementation in Python
https://github.com/juergenhoetzel/pyrrhic
backup restic
Last synced: about 2 months ago
JSON representation
Restic implementation in Python
- Host: GitHub
- URL: https://github.com/juergenhoetzel/pyrrhic
- Owner: juergenhoetzel
- License: mit
- Created: 2022-07-10T20:37:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T22:12:57.000Z (4 months ago)
- Last Synced: 2024-10-30T14:54:57.070Z (2 months ago)
- Topics: backup, restic
- Language: Python
- Homepage:
- Size: 2.53 MB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Restic implementation in Python
[![image](https://github.com/juergenhoetzel/pyrrhic/workflows/main/badge.svg?branch=master)](https://github.com/juergenhoetzel/pyrrhic/actions?workflow=main)
[![image](https://codecov.io/gh/juergenhoetzel/pyrrhic/branch/master/graph/badge.svg)](https://codecov.io/gh/juergenhoetzel/pyrrhic)## Installation
### From pip
```bash
pipx install pyrrhic-restic
```
## Screenshot## Alpha Relase
All commands are compatible with `restic` implementation:
```bash
pyrrhic --repo restic_test_repositories/restic_test_repository cat masterkey```
```
{'encrypt': 'Te0IPiu0wvEtr2+J59McgTrjCp/ynVxC/mmM9mX/t+E=',
'mac': {'k': 'aSbwRFL8rIOOxL4W+mAW1w==', 'r': 'hQYBDSD/JwpU8XMDIJmAAg=='}}
``````bash
pyrrhic -r restic_test_repositories/restic_test_repository -p <(echo password) ls latest
``````
/usr
/usr/share
/usr/share/cracklib
/usr/share/cracklib/cracklib-small
/usr/share/cracklib/cracklib.magic
/usr/share/cracklib/pw_dict.hwm
/usr/share/cracklib/pw_dict.pwd
/usr/share/cracklib/pw_dict.pwi
```## Additional features missing in golang restic implementation
- pretty-print all objects
- `pyrrhic cat pack SNAPSHOT_ID --header` prints parsed header
- Resumable restore
- Progress bar## Why is it called pyrrhic
Needed a name starting with `py` containing `r` and ending with `ic`:
```bash
grep ^py.*r.*ic$ /usr/share/dict/cracklib-small
```## Limitations
- Supports repository format version 2 only (current restic version).