{"repo":"sinnwerkstatt/runrestic","free":true,"listed":false,"github":"https://github.com/sinnwerkstatt/runrestic","clone":"git clone https://github.com/sinnwerkstatt/runrestic.git","description":"A wrapper script for Restic backup software that inits, creates, prunes and checks backups","language":"Python","stars":122,"topics":["restic","restic-backups","automation","prometheus-metrics","backups"],"license":"GPL-3.0","category":"workflow-automation","readme_excerpt":"Runrestic runrestic is a simple Python wrapper script for the Restic backup software that initiates a backup, prunes any old backups according to a retention policy, and validates backups for consistency. The script supports specifying your settings in a declarative configuration file rather than having to put them all on the command-line, and handles common errors. Example config Alternatively you can also just use JSON. For a more comprehensive example see the example.toml or check the schema.json Getting started Installing runrestic and restic To install runrestic , run the following command to download and install it: You can either manually download and install Restic or you can just run runrestic and it'll try to download it for you. Initializing and running Once you have restic and runrestic ready, you should put a config file in on of the scanned locations, namely: - /etc/runrestic.toml - /etc/runrestic/ example .toml - /.config/runrestic/ example .toml - /etc/runrestic.json - /etc/runrestic/ example .json - /.config/runrestic/ example .json Afterwards, run Certain restic flags like --dry-run/-n are built into runrestic as well and will be passed to restic where applicable. If, however, you need to pass along arbitrary other flags you can now add them to the end of your runrestic call like so: Logs for restic and hooks The output of restic and the configured pre/post-hooks is added to the runrestic logs at the level defined in [execution] proc log level (default: DEBU","default_branch":null,"files":null,"tree":[],"storefront":"/r/sinnwerkstatt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sinnwerkstatt/runrestic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}