https://github.com/jbox-web/dirvish-reporter
Dirvish Reporter
https://github.com/jbox-web/dirvish-reporter
dirvish ruby
Last synced: about 2 months ago
JSON representation
Dirvish Reporter
- Host: GitHub
- URL: https://github.com/jbox-web/dirvish-reporter
- Owner: jbox-web
- License: mit
- Created: 2017-10-11T23:31:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-12T00:22:40.000Z (over 7 years ago)
- Last Synced: 2025-05-14T12:20:02.384Z (about 2 months ago)
- Topics: dirvish, ruby
- Language: HTML
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dirvish Reporter
[](https://github.com/jbox-web/dirvish-reporter/blob/master/LICENSE)
Dirvish Reporter is a pair or Ruby scripts to generate nice HTML email reports for [Dirvish Backup](http://www.dirvish.org/).
## Installation
You must have at least Ruby 2.x installed on your server with `mail` gem.
To install Ruby and the `mail` gem :
```sh
root@example:~# apt-get install ruby
root@example:~# gem install mail
```Then copy the content of the `scripts` directory of this repository into `/etc/dirvish/scripts` and configure your vaults to call the [`backup-end` script](http://www.dirvish.org/dirvish.conf.5.html) :
```yaml
post-server: /etc/dirvish/scripts/backup-end
```Finally change the Dirvish cron task to call our report script :
```sh
# /etc/cron.d/dirvish: crontab fragment for dirvish# run every night
00 07 * * * root /etc/dirvish/dirvish-cronjob 2>&1 | /etc/dirvish/scripts/reporter
```