dermotduffy / restic-exporter

A statistics exporter for restic backups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyPi PyPi Build Status Coverage

Restic Exporter

A small Python binary to export stats from a restic backup repository, for example for use in monitoring systems.

Installation

$ pip3 install restic-exporter

Features

  • Decoupled from restic itself, can be run on any host as long as it can talk to the repository.
  • Can provide both repo-based statistics, and backup progress statistics from restic clients.

Statistics Exported

Almost all data made available from the restic tool itself can be exported.

  • Backup progress (restic_backup_progress)
    • hostname
    • paths
    • tags
    • bytes_done
    • total_bytes
    • files_done
    • total_files
    • percent_done
    • seconds_tag
  • Backup summary (restic_backup_summary)
    • hostname
    • paths
    • tags
    • snapshot_id
    • files_new
    • files_unmodified
    • files_changed
    • dirs_new
    • dirs_unmodified
    • dirs_changed
    • data_added
    • total_bytes_processed
    • total_files_processed
    • total_duration
  • Snapshots (restic_snapshots)
    • hostname
    • paths
    • tags
    • raw_blob_count
    • raw_file_count
    • raw_size
    • restore_file_count
    • restore_size

Supported Exporters

This tool can export statistics to:

Usage

To be completed.

About

A statistics exporter for restic backups

License:MIT License


Languages

Language:Python 100.0%