deluxetiky / lvm-restic-backup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LVM restic & rescript backup

This bash script backups logical volumes via restic. To simplify repo handling, this script takes repo details from rescript config.

Requirements

Optional Req. for Zabbix Monitoring

How to use

lvm-rescript [repo_name] [command] [lv_name|path-to-list]

Commands

  • block-level-backup creates a lvm-snapshot & pipes the volume using dd to restic
  • block-level-gz-backup creates a lvm-snapshot & pipes the volume using dd and pigz to restic
  • file-level-backup creates a lvm-snapshot & creates a restic backup using the mounted snapshot
  • restore restores logical volume(s)

How to install

curl -o /usr/bin/lvm-rescript https://raw.githubusercontent.com/sebastian13/lvm-restic-backup/master/lvm-restic-backup.sh
chmod +x /usr/bin/lvm-rescript

For Zabbix LVM Discovery also download the script:

curl -o /etc/zabbix/scripts/rescript-lvm-discovery.pl https://raw.githubusercontent.com/sebastian13/zabbix-templates/master/rescript-restic-backup/scripts/rescript-lvm-discovery.pl
chmod +x /etc/zabbix/scripts/rescript-lvm-discovery.pl

About

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%