Restic Backup Orchestrator - Back up services and files to a restic repository.
- Multiple projects from one config file
- Parallel or sequential execution
- Automatic container stop/start during backup
- Per-project retention policies (forget) with a single global prune
- Pre/post backup hooks
- YAML, JSON, TOML config support
-
Copy and edit a config file:
cp config.example.yaml config.yaml # Edit config.yaml with your restic repo and projects -
Run manually:
./restor --config config.yaml
Copy restor to /usr/local/bin/restor:
sudo cp restor /usr/local/bin/restorCopy your config to /etc/restor/config.yaml:
sudo mkdir -p /etc/restor
sudo cp config.yaml /etc/restor/sudo cp restor.service /etc/systemd/system/
sudo cp restor.timer /etc/systemd/system/sudo systemctl daemon-reload
sudo systemctl enable restor.service
sudo systemctl start restor.timer
sudo systemctl enable restor.timersystemctl list-timers
sudo systemctl status restor.timer
sudo journalctl -u restor -fSee config.example.yaml for all options.
Required: restic_repo, projects[] with compose_file, sources, stop_timeout, start_timeout, retention_policy
Global: auto_prune, prune_options
Per-project: forget_options, pre_backup_cmd, post_backup_cmd
MIT